how to create excel file with name using apple script? In this script excel file is created but workbook name is not set.
tell application "Microsoft Excel"
make new workbook at end with properties{name:"MyIndia"}
end tell
Try:
tell application "Microsoft Excel"
set myWorkbook to make new workbook
save workbook as myWorkbook filename "My Workbook Name"
end tell
To get a workbook's name before saving the excel file:
tell application "Microsoft Excel"
set myWorkbook to make new workbook
return myWorkbook's name
end tell
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.