Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-04-2011, 01:08 AM
tinfanide tinfanide is offline Word VBA: assign shortcut keys to sub??? Windows 7 64bit Word VBA: assign shortcut keys to sub??? Office 2010 32bit
Expert
Word VBA: assign shortcut keys to sub???
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default Word VBA: assign shortcut keys to sub???

Code:
Sub textHighlighter()

Selection.range.HighlightColorIndex = wdYellow

End Sub
I want to assign shortcut keys to this sub
when I highlight texts, just press the key to do the effect

I have tried
Code:
Application.OnKey "', ""
But doesn't work at all.
I mean thru VBA, not thru using the Macro Menu.


Thanks in advance.
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Mail Shortcut Keys? gratiot Outlook 3 07-29-2011 10:31 AM
Shortcut keys in Find&Replace fsdance Word 0 02-11-2011 03:27 PM
cant use shortcut keys (ctrl+c/v/z...) laro Office 0 10-08-2010 11:01 PM
Can't Assign Shortcut Keys Vicki F. Word 0 04-17-2010 03:03 PM
Assign name to a group in word document pankaj_saha Word 0 11-12-2009 10:59 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:00 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