次のような Excel ファイルでセルを取得するコードがあります。
tell application "Microsoft Excel"
-- put the complete set of data into a list of lists (i.e., 2 dimensions -> columns of rows)
set range1 to range "B2:H7686"
tell active sheet to set myData to value of range1
-- now access a specific cell's data
set myRow to 7
set myCol to 3
set myVal to item {myCol} of item {myRow} of myData as string
end tell
しかし、結果のリストのリストを取得すると、10000.0 より大きい数値は指数形式で表されます。
このスクリプトを実行して、数値を通常の整数形式で取得するか、リスト内の数値を整数形式に変更するにはどうすればよいですか?
補足: これらのリストには、数字と文字列の両方が含まれています