![](/img/trans.png)
[英]Pandas Read Excel: how to access a given cell by column and row numbers
[英]How can I get an Excel cell given column and row numbers in Applescript?
在Excel中獲取單元格的所有Applecript示例我都可以找到使用A1
表示法,如下所示:
set c to range 'A1'
我想用列和行號代替 - 就像這樣
set c to range 1, 23
或類似的東西。 有任何想法嗎?
是的,例如使用單元格A23:
set a to value of cell 23 of column 1
偏移也有點奇怪,並且可能會派上用場 - 活動單元格示例:
set b to value of (get offset active cell column offset 4)
set c to value of (get offset active cell column offset 4 row offset 2)
所以你也可以這樣做,這將給你E5的價值:
set d to value of (get offset cell "A1" column offset 4 row offset 4)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.