2013-12-13 26 views
1

細胞的範圍可以返回Excel對象從這樣一行:如何在Applescript範圍引用對象上進行操作以確定行數?

set the_range_to_measure_size to used range 

像一個行:

get address of the_range_to_measure_size 
-- >result "$A$1:$D$56" 

將返回一個範圍內的文字

什麼最簡單的方法來返回範圍對象的'尺寸',即

  • 寬度(以列爲單位)
  • 高度(行)
  • 開始行(如整型或字符串)
  • 起始列(如整型或字符串)

回答

2

Excel Applescript dictionaryrange類條目:

 
tell application "Microsoft Excel" 
    get count of columns of used range of active sheet 
    get count of rows of used range of active sheet 
    get first row index of used range of active sheet 
    get first column index of used range of active sheet 
end tell 
相關問題