Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2005

Tip: Looking for answers? Try searching our database.

Assing shortcut to macro using VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bo Rasmussen - 14 Sep 2005 09:45 GMT
Hi,

How do I setup a shortcut to a macro uisng VBA using Office '97.

Regards
Bo Rasmussen
Anne Troy - 14 Sep 2005 13:41 GMT
While not exactly the same, it's very similar to this:
http://www.officearticles.com/misc/methods_to_run_a_macro_in_microsoft_office_ap
plications.htm

************
Anne Troy
www.OfficeArticles.com

> Hi,
>
> How do I setup a shortcut to a macro uisng VBA using Office '97.
>
> Regards
> Bo Rasmussen
Bo Rasmussen - 15 Sep 2005 13:42 GMT
Hi Anne,

FYI I found this in the help for the Rebind command

This sets the shortcut Ctrl-Shift-5 to the macro documentSetup located in
the module1 module.

CustomizationContext = ActiveDocument
Set myKey = FindKey(BuildKeyCode(wdKeyControl, wdKeyShift, wdKey5))
myKey.Rebind KeyCategory:=wdKeyCategoryCommand,
Command:="module1.documentSetup"

Regards
Bo

> While not exactly the same, it's very similar to this:

http://www.officearticles.com/misc/methods_to_run_a_macro_in_microsoft_office_ap
plications.htm

> ************
> Anne Troy
[quoted text clipped - 6 lines]
> > Regards
> > Bo Rasmussen
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.