Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-30-2014, 07:34 PM
ptmuldoon ptmuldoon is offline Assign Key via VBA? Windows 7 64bit Assign Key via VBA? Office 2013
Advanced Beginner
Assign Key via VBA?
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign Key via VBA? how to assign a labor resource more than once ketanco Project 3 02-11-2014 12:23 PM
Assign Key via VBA? Assign a value to a Content Control SuzeG Word VBA 10 12-08-2013 08:04 AM
Assign Key via VBA? Assign Hotkey Andrew H Word VBA 3 11-26-2012 09:56 PM
VBA to Assign Aliases jerem Word VBA 3 12-08-2011 07:11 PM
Assign Key via VBA? Assign functions to F1, etc. ibclare Office 4 06-02-2011 03:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:41 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft