繁体   English   中英

如何使用Applescript从Excel中的单元格引用中提取行号?

[英]How do I extract the row number from a cell reference in Excel using Applescript?

tell application "Microsoft Excel"
          set ac to get address of active cell
-- set rw to row of ac
          log ("Active cell: " & ac & return & "Row from Active Cell: " & rw)
end tell

第3行不会编译,但我需要遵循这些原则。

要获取单元格和行号,可以使用Excel range类中的first row indexfirst column index

我建议您仔细阅读Excel Applescript字典,那里有许多线索供您尝试使用。

对于您的情况:

set rw to the first row index of the active cell

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM