Hey all,
Noobie to applescripting.
I am using excel 2004 and would like to either:
Find a way to remove the default function keys from certain commands (ie in Word, when you click on Tools/Customize Keyboard, you can remove certain short cuts from commands by clicking the Remove button; in Excel, this option is greyed out)
or
I would like to use the On Key command to assign the following process to the F2 key:
tell application "System Events" to tell process "Microsoft Excel"
keystroke "u" using control down
My entire script looks like this but i know the On Key command is incomplete. I keep getting a “Can’t continue on key error” no matter how i script it. I just cant figure it out:
tell application "Microsoft Excel"
activate
activate current page
on key key "{F2}"
tell application "System Events" to tell process "Microsoft Excel"
keystroke "u" using control down
end tell
end tell
Any help on either would be much appreciated.