View Single Post
  #18   Report Post  
Posted to microsoft.public.word.newusers
Tom Hall Tom Hall is offline
external usenet poster
 
Posts: 16
Default Word 2003 - F1 and macros

On Tue, 03 Oct 2006 14:34:30 +0200, Cindy M.
wrote:

It comes up saying "Shift-F11 is assigned to:" and that's all. It doesn't
say unassigned.

Oh, yuck sigh I see "PrevField" right above the combobox "Save changes in".
You're sure it's just because your eyes didn't travel far enough to the right
:-)?


Positive. There's nothing there.

If there's really nothing there, you can try the following macro to find out to
what it's been assigned. Note: the macro should have only 18 lines when you've
copied it to the VB Editor (Alt+F11 in Word). If you see more, then it's broken
in the wrong place and we'll need to put humpty-dumpty back together. Only three
lines should start at the far left: Sub, Handler and End Sub

Sub GetKeyboardAssignment()
Application.CustomizationContext = NormalTemplate
On Error GoTo Handler
MsgBox Application.KeyBindings.Key( _
KeyCode:=BuildKeyCode(wdKeyShift, wdKeyF11)).Command

Exit Sub

Handler:
Select Case Err.Number
Case 91
MsgBox "The key combination has not been reassigned"
Case Else
MsgBox "Error: " & CStr(Err.Number) & vbCr & _
Err.Description
End Select
End Sub


I get a nice little Microsoft Word dialog box with an OK button - and
nothing else.

And I count only 17 lines in the above macro, including blank lines. :-)



Tom

--
remove .spoo to reply by email