A
Alan Schmidt
I'm wanting a simple applescript to close a spreadsheet window and I want to
close the window without saving changes or being prompted to save changes. I
used the Script Editor to record the script and then tried to modify it to
do what I want but without success- it still prompts me to save when the
window gets closed. Can anyone help me out here- I'm at a complete loss with
AppleScript? Thanks!!! The script I've got is below:
tell application "Microsoft Excel"
Activate
Select Range "R1:R65536"
CopyObject Sheet "Accounts.txt"
Activate Window "Accounts.txt"
Close ActiveWindow saving No
end tell
BTW, this is OS 10.3 with Excel X.
Thanks again!
-Alan
close the window without saving changes or being prompted to save changes. I
used the Script Editor to record the script and then tried to modify it to
do what I want but without success- it still prompts me to save when the
window gets closed. Can anyone help me out here- I'm at a complete loss with
AppleScript? Thanks!!! The script I've got is below:
tell application "Microsoft Excel"
Activate
Select Range "R1:R65536"
CopyObject Sheet "Accounts.txt"
Activate Window "Accounts.txt"
Close ActiveWindow saving No
end tell
BTW, this is OS 10.3 with Excel X.
Thanks again!
-Alan