B
betrosc
Hi,
I am wanting to remap the MSWord 2002 save shortcut Ctrl+S so that when
a user presses the Ctrl+S instead of doing a save it runs my code and i
choose to do the save or not.
The code i currently have is :
....
Private WithEvents objWordApp As Word.Application
....
objWordApp.CustomizationContext = objWordApp.ActiveDocument
objWordApp.KeyBindings.Add(Word.WdKeyCategory.wdKeyCategoryMacro,
"TestIt", objWordApp.BuildKeyCode(Word.WdKey.wdKeyControl.wdKeyControl,
Word.WdKey.wdKeyControl.wdKeyS))
....
Private Sub TestIt()
messagebox.show("in here")
End Sub
The error message that comes up is :
"Word cannot change the function of ther specified key"
Can anyone offer some suggestions.
Thanks
Clinton
I am wanting to remap the MSWord 2002 save shortcut Ctrl+S so that when
a user presses the Ctrl+S instead of doing a save it runs my code and i
choose to do the save or not.
The code i currently have is :
....
Private WithEvents objWordApp As Word.Application
....
objWordApp.CustomizationContext = objWordApp.ActiveDocument
objWordApp.KeyBindings.Add(Word.WdKeyCategory.wdKeyCategoryMacro,
"TestIt", objWordApp.BuildKeyCode(Word.WdKey.wdKeyControl.wdKeyControl,
Word.WdKey.wdKeyControl.wdKeyS))
....
Private Sub TestIt()
messagebox.show("in here")
End Sub
The error message that comes up is :
"Word cannot change the function of ther specified key"
Can anyone offer some suggestions.
Thanks
Clinton