• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Excel can't close?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Excel can't close?


  • Subject: Excel can't close?
  • From: Dave Balderstone <email@hidden>
  • Date: Wed, 28 Sep 2005 10:15:09 -0600

Tiger 10.4.2, Excel 11.2 (050714). This script fails...

tell application "Microsoft Excel"
    close document 1 saving no
end tell

--> Microsoft Excel got an error: document 1 doesn't understand the close message.

As does:

tell application "Microsoft Excel"
    close front document saving no
end tell

--> Microsoft Excel got an error: document 1 doesn't understand the close message.

but this works:

tell application "Microsoft Excel"
    close every document saving no
end tell



I'm confused... Does anyone have an explanation?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Excel can't close?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: AppleScript a miserable and utter failure
  • Next by Date: checking for script compatibility: open location target_URL
  • Previous by thread: Re: AppleScript a miserable and utter failure
  • Next by thread: Re: Excel can't close?
  • Index(es):
    • Date
    • Thread