Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-24-2020, 06:53 AM
docbike docbike is offline Keystroke to run macros Windows 8 Keystroke to run macros Office 2013
Novice
Keystroke to run macros
 
Join Date: Apr 2014
Posts: 8
docbike is on a distinguished road
Default Keystroke to run macros

Hello everyone.



Can you please tell me how to run a macros by assigning keystrokes to it. I'm using Office 2010 and I have a lot of existing macros that I would now like to assign.

Thanks
Reply With Quote
  #2  
Old 07-24-2020, 07:31 AM
Charles Kenyon Charles Kenyon is offline Keystroke to run macros Windows 10 Keystroke to run macros Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Hello,


This is the same process in Word 2010 to Word 2021 (and 365) in the desktop versions.

If these are macros you are going to be using regularly and do not need to "tweak" in the visual basic explorer, I would recommend first moving them to a new Global Template to insulate them from "stuff" that seems to happen to the Normal Template. This will also make it easier to move or share them. You can do this using the Organizer. That link shows you how to get to the Organizer for styles, but once you are there, you can click on the tab for macros.

Once you have the template where you are going to keep them open, you can assign your keyboard shortcuts, storing those shortcuts in the same template. I advise moving the macros first because it is not easy to copy/move keyboard shortcuts. I know of only one way: Chris Woodman's Keyboard Shortcut Organizer.

So, at this point you have your macros where you want them. If stored in a global template, that template is the open document on your screen.

If still in your normal template, that is OK, the normal template does not have to be specially opened.

  • File > Options > Customize the Ribbon.
  • Click on the button to Customize Keyboard shortcuts (bottom left)
  • Find "Macros" in the list on the left, then find your macro that you want to assign a shortcut.
  • Make sure you have the template where you want to store them selected each time you assign a shortcut.
  • Click in the box for the shortcut and then press the keyboard shortcut you want to use.


Word will tell you if this is already used for something. If it is, you can still use it, or backspace to blank your shortcut and try a different one.
Click on the Assign button.
  • Go to your next macro and shortcut.

Important. You must press Close on this dialog box and OK on the Customize the Ribbon Dialog box to save your changes. If you are going to pause this process to do something else, OK your way out so you don't lose your work.




Be aware that you can use a prefix or trigger shortcut for a number of different macros.

Recently I assisted someone who wanted shortcuts for macros to insert the symbols for card suits and found that the keyboard shortcut Ctrl+Alt+Shift+D was not available in Word for Diamonds. (He wanted to use C, D, H, and S with the shift keys for this.)
Instead used Ctrl+Alt+Shift+C followed by the different letters for the four suits. The Ctrl+Alt+Shift+C sets Word up to wait for one of those four assigned to trigger a macro.
Using prefixes like this can help keep you from running out of shortcuts and can help organize them.


See also my article: Assigning Keyboard Shortcuts in Microsoft Word 2007-2021 (365)

Last edited by Charles Kenyon; 11-27-2021 at 01:22 PM.
Reply With Quote
  #3  
Old 07-24-2020, 08:59 AM
docbike docbike is offline Keystroke to run macros Windows 8 Keystroke to run macros Office 2013
Novice
Keystroke to run macros
 
Join Date: Apr 2014
Posts: 8
docbike is on a distinguished road
Default

Thank you VERY much
Reply With Quote
  #4  
Old 07-24-2020, 09:44 AM
Charles Kenyon Charles Kenyon is offline Keystroke to run macros Windows 10 Keystroke to run macros Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You are welcome.
Reply With Quote
  #5  
Old 07-24-2020, 10:16 AM
docbike docbike is offline Keystroke to run macros Windows 8 Keystroke to run macros Office 2013
Novice
Keystroke to run macros
 
Join Date: Apr 2014
Posts: 8
docbike is on a distinguished road
Default

By the way, you'll see my other post. A colleague sorted out the first two issues for me. For anyone who doesn't know, press "CTRL+SHIFT+8" cleans the text. Who could have guessed? I would still appreciate some help with the autocirrect issue. Thanks again.
Reply With Quote
  #6  
Old 07-24-2020, 11:34 AM
Charles Kenyon Charles Kenyon is offline Keystroke to run macros Windows 10 Keystroke to run macros Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Ctrl+Shift+8 (Ctrl+*) does not clean text. It toggles the display of non-printing formatting marks.
Showing non-printing formatting marks in Microsoft Word
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keystroke to run macros My Ctrl+U no longer is the Underline! How do I re-assign that function to the keystroke? FearlessStamper Word 2 09-07-2017 06:53 AM
Keystroke to run macros How to automatically enable the macros upon opening a file with macros? laurieli Office 7 01-17-2016 08:56 AM
Keystroke to run macros Keystroke to jump the cursor to the next row directly Joey Cheung Word Tables 1 08-27-2014 07:01 AM
Keystroke to run macros Macros Desertwrangler Word VBA 6 06-25-2010 07:06 AM
Keystroke to run macros Keystroke for A1 eliz.bell Excel 1 06-11-2010 09:06 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:43 AM.


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