如何在Excel for Mac (v2015)中使用AppleScript增加/减少小数点



我正在寻找与功能区按钮相同的功能,用于调整所选范围显示的小数位数,因此'增加一个'或'减少一个'

https://www.evernote.com/l/AApXNJsEcZlM26TNTsHN1FSwP3eUTuJJwqU

rkp333

请尝试以下操作,因为它适用于以前版本(2011)的Excel:

tell application "Microsoft Excel"
   tell sheet 1
       tell cell 1 of used range
           set number format to "0.00" -- can be 0,00 in some localizations
       end tell
   end tell
end tell

最新更新