View Single Post
 
Old 11-30-2014, 07:34 PM
ptmuldoon ptmuldoon is offline Windows 7 64bit Office 2013
Advanced Beginner
 
Join Date: Sep 2014
Posts: 93
ptmuldoon is on a distinguished road
Default

I think i'm close with this, but when I copy the dotm file to the start folder of another pc, its not working. It appears as if the file is not even opening when I start Word, although it is in the correct start folder as well.

Code:
Sub AutoOpen()
     With Application
         ' \\ Do customization in THIS document
         ' .CustomizationContext = ThisDocument
         
         ' \\ Add keybinding to this document Shorcut: Alt+0
        .KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyControl, wdKeyAlt, wdKeyL), _
        KeyCategory:=wdKeyCategoryCommand, _
        Command:="ChangeFileLinks"
    End With

End Sub
Reply With Quote