T
Tom Hall
Some time ago I asked for help in defining a Word macro that could be bound
to the F1 key. Someone came up with the following, which worked quite
nicely.
Sub MakeF1()
'
' MakeF1 Macro
' Macro recorded 9/26/2006 by Tom Hall
'
Application.CustomizationContext = ActiveDocument
Application.KeyBindings.Add wdKeyCategoryMacro, "Interviewer", wdKeyF1
End Sub
I have a macro called "Interviewer" which actually transmits the keystrokes
I want the F1 key to activate. As I said, this all works quite well.
Today I discovered that there's another key that Word apparently doesn't
want you to use to define a macro, and that's Shift F1.
I've tried various permutations on the above macro to get the same thing to
happen when I press Shift-F1, but so far to no avail.
I'm assuming that I can do this by replacing "wdKeyF1" with the appropriate
statement for Shift-F1, but so far I haven't been able to find one that
works.
I would of course expect to replace "Interviewer" with another macro
separately defined, followed by the correct designation for Shift-F1, but
so far I haven't found it.
Can the same workaround that worked for F1 be made to work for Shift-F1?
Tom
to the F1 key. Someone came up with the following, which worked quite
nicely.
Sub MakeF1()
'
' MakeF1 Macro
' Macro recorded 9/26/2006 by Tom Hall
'
Application.CustomizationContext = ActiveDocument
Application.KeyBindings.Add wdKeyCategoryMacro, "Interviewer", wdKeyF1
End Sub
I have a macro called "Interviewer" which actually transmits the keystrokes
I want the F1 key to activate. As I said, this all works quite well.
Today I discovered that there's another key that Word apparently doesn't
want you to use to define a macro, and that's Shift F1.
I've tried various permutations on the above macro to get the same thing to
happen when I press Shift-F1, but so far to no avail.
I'm assuming that I can do this by replacing "wdKeyF1" with the appropriate
statement for Shift-F1, but so far I haven't been able to find one that
works.
I would of course expect to replace "Interviewer" with another macro
separately defined, followed by the correct designation for Shift-F1, but
so far I haven't found it.
Can the same workaround that worked for F1 be made to work for Shift-F1?
Tom