C
Charles Bouldin
Microsoft, bless their hearts, has decided that in Excel the "Find"
dialog is modal. Worse, command-W doesn't close the find dialog. Even
worse, NO command key equivalent closes the find dialog. In desperation,
I tried to make an Applescript that would do it.
The script below sure should; in fact you can see the button highlight 3
times, but the dialog doesn't close.
activate application "Microsoft Excel"
tell application "System Events"
tell process "Microsoft Excel"
delay 2
click button "Close" of window "Find"
click button "Close" of window "Find"
click button "Close" of window "Find"
end tell
end tell
Any suggestions on this? I downloaded the MS document
Excel2004AppleScriptRef.pdf and found that the dialog I'm looking at can
be displayed by
tell application "Microsoft Excel"
show (get dialog dialog formula find)
end tell
But I can't figure out how to CLOSE the darn thing.
Pointers much appreciated. If a script works, then I can put in Quickeys
and command-W will activate the script and close the dialog. So much for
user interface standards.
I have the nagging feeling that either (1) I'm making this much harder
than it needs to be, or (2) this is truly bad UI design on something so
basic.
dialog is modal. Worse, command-W doesn't close the find dialog. Even
worse, NO command key equivalent closes the find dialog. In desperation,
I tried to make an Applescript that would do it.
The script below sure should; in fact you can see the button highlight 3
times, but the dialog doesn't close.
activate application "Microsoft Excel"
tell application "System Events"
tell process "Microsoft Excel"
delay 2
click button "Close" of window "Find"
click button "Close" of window "Find"
click button "Close" of window "Find"
end tell
end tell
Any suggestions on this? I downloaded the MS document
Excel2004AppleScriptRef.pdf and found that the dialog I'm looking at can
be displayed by
tell application "Microsoft Excel"
show (get dialog dialog formula find)
end tell
But I can't figure out how to CLOSE the darn thing.
Pointers much appreciated. If a script works, then I can put in Quickeys
and command-W will activate the script and close the dialog. So much for
user interface standards.
I have the nagging feeling that either (1) I'm making this much harder
than it needs to be, or (2) this is truly bad UI design on something so
basic.