使用AppleScript在Excel中添加多个工作表
在Sheet1之前,以下AppleScript将新的工作表添加到Microsoft Excel中。 是否有可能指定我要插入多less个工作表? 在VBA中, Sheets.Add
方法中有Count
参数。
tell application "Microsoft Excel" make new worksheet at before sheet "Sheet1" of active workbook end tell
这是一个简单的方法:
tell application "Microsoft Excel" repeat 5 times make new worksheet at before sheet "Sheet1" of active workbook end repeat end tell
您可以根据需要重复多次。