如何使用苹果脚本创建带有名称的 excel 文件?在此脚本中创建了 excel 文件,但未设置工作簿名称。
tell application "Microsoft Excel"
make new workbook at end with properties{name:"MyIndia"}
end tell
如何使用苹果脚本创建带有名称的 excel 文件?在此脚本中创建了 excel 文件,但未设置工作簿名称。
tell application "Microsoft Excel"
make new workbook at end with properties{name:"MyIndia"}
end tell
尝试:
tell application "Microsoft Excel"
set myWorkbook to make new workbook
save workbook as myWorkbook filename "My Workbook Name"
end tell
在保存 Excel 文件之前获取工作簿的名称:
tell application "Microsoft Excel"
set myWorkbook to make new workbook
return myWorkbook's name
end tell