• 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
Can't get name of Window 1 in Excel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't get name of Window 1 in Excel


  • Subject: Can't get name of Window 1 in Excel
  • From: Robert Poland <email@hidden>
  • Date: Sat, 1 Oct 2005 09:50:24 -0600

Hi,

The following script fails with MS Excel version X, "Can't get name of Window 1.".
It works with other applications.


Is there a simple workaround?

Tia,

-- Application Excel has been opened and window 1 is active. Script run from Smile.

tell application "Microsoft Excel"
	Activate
	delay 1
	set fileName to Name of Window 1
	display dialog "fileName = " & fileName
end tell
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
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: Can't get name of Window 1 in Excel
      • From: Craig Sutherland <email@hidden>
    • Re: Can't get name of Window 1 in Excel
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: AppleScript a miserable and utter failure
  • Next by Date: Re: Can't get name of Window 1 in Excel
  • Previous by thread: Re: AppleScript a miserable and utter failure
  • Next by thread: Re: Can't get name of Window 1 in Excel
  • Index(es):
    • Date
    • Thread