Re: Can't get name of Window 1 in Excel - answer
Re: Can't get name of Window 1 in Excel - answer
- Subject: Re: Can't get name of Window 1 in Excel - answer
- From: Robert Poland <email@hidden>
- Date: Sun, 2 Oct 2005 14:51:42 -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/
Found this from Aug 2003
tell application "Microsoft Excel"
set x to Path of Workbook 1
end tell
That gets the name and then some.
--
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