Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to insert a Macro into Word 2010 in Windows 7 & Assign Shortcut

12 May 2012   #1
dell3

windows 7 professional 64 bit
 
 
How to insert a Macro into Word 2010 in Windows 7 & Assign Shortcut

I cannot find up to date, step by step instructions on creating a macro in Word 2010 on Windows 7.
While in Word, View, I see Create Macros.
And I can name it and paste in this info below.

Sub PrintCurrentPage()
Application.PrintOut Range:=wdPrintCurrentPage
End Sub

But how do I assign a keyboard short cut to it? Is there a youtube video that is up to date on this?
Thanks.


My System SpecsSystem Spec
.
12 May 2012   #2
Tekno Venus

Windows 7 Home Premium 64bit (O.E.M)
 
 

Hi and welcome to Seven Forums,

The best way to do this would be to record a macro and in the dialog box that comes up, create a keyboard shortcut. Then record something, it can be anything. Then open the macro dialog box with all the macros listed, click your newly created macro and click edit. Then delete the code and replace it with your own. Save and test it.

Hope this helps
Stephen
My System SpecsSystem Spec
12 May 2012   #3
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Welcome to Windows Seven Forums.

Have a look at this tutorial.

Create Macros In Word 2010
My System SpecsSystem Spec
.

12 May 2012   #4
Tekno Venus

Windows 7 Home Premium 64bit (O.E.M)
 
 

Quote   Quote: Originally Posted by seavixen32 View Post
Welcome to Windows Seven Forums.

Have a look at this tutorial.

Create Macros In Word 2010
Good link. I posted my directions as I included how to add the OP's code and still have a keyboard shortcut.
My System SpecsSystem Spec
12 May 2012   #5
dell3

windows 7 professional 64 bit
 
 

This is weird. I have viewed the tutorials and still can't figure it out. I have a working macro. But I am stuck on the attached screenshot. I cannot get to a place where I can assign keyboard strokes to the macro. Please help. thanks in advance.


Attached Thumbnails
How to insert a Macro into Word 2010 in Windows 7 & Assign Shortcut-macro-problem.png  
My System SpecsSystem Spec
13 May 2012   #6
Duzzy

Windows 7 Ultimate x64
 
 

I agree with Tekno that the easiest way when creating a new macro is to record a macro and assign a keyboard shortcut then. If you wish to change the assigned shortcut or add one to a existing macro then you can click

File > Options > Customize Ribbon and at the bottom of the window click Keyboard Shortcuts: Customize.

Under Categories scroll to the bottom and you should find Macros. If you can't find your particular macro check what document it's saved in under the drop down box "Save changes in:".

It would make more sense to have this option in the Macros window but that's MS for you.
My System SpecsSystem Spec
13 May 2012   #7
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Quote   Quote: Originally Posted by dell3 View Post
This is weird. I have viewed the tutorials and still can't figure it out. I have a working macro. But I am stuck on the attached screenshot. I cannot get to a place where I can assign keyboard strokes to the macro. Please help. thanks in advance.
Did you assign a keyboard shortcut when you recorded the macro, as you should have done?

The macro has obviously been recorded because it has a name and a list of options e.g. if you click on Run, it will run the macro.
My System SpecsSystem Spec
13 May 2012   #8
Tekno Venus

Windows 7 Home Premium 64bit (O.E.M)
 
 

Hi,

Created a video myself to show you how to do this as I couldn't find a good one. Hope it helps. You'll want to watch it in HD as the quality isn't very good

Stephen

EIDT - REMOVED THE VIDEO FROM YOUTUBE. SORRY. YOU'LL JUST HAVE TO MANAGE WITH THE WRITTEN STEPS.
My System SpecsSystem Spec
13 May 2012   #9
dell3

windows 7 professional 64 bit
 
 

Quote   Quote: Originally Posted by Duzzy View Post
File > Options > Customize Ribbon and at the bottom of the window click Keyboard Shortcuts: Customize.
Duzzy and everyone, thank you! That gets me to the right place. Had no idea it would be there, instead of under the Macros icon. Which brings me to a follow up question: What are the best keyboard shortcuts, stroke combinations, to assign to Word 2010 macros? I tried to look up a list of unused keystroke combinations but have not found such a list. And, I can't get a simple list to show up on my screen. I seem to have to click through thousands of options to see what keystrokes are being used. What is some combination that is definitely not being used in Windows 7 or Word 2010? Do they all have to being with Control? Thanks again.
My System SpecsSystem Spec
13 May 2012   #10
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

You may find it easier to use the button option rather than a keyboard shortcut.

There's no time penalty, because all you'll do is click a button on the ribbon instead of pressing a keyboard shortcut.
My System SpecsSystem Spec
Reply

 How to insert a Macro into Word 2010 in Windows 7 & Assign Shortcut




Thread Tools




Similar help and support threads
Thread Forum
MS Office 2010 - Word Macro
I am a novice at this and I have searched and searched over the last week trying to figure out a fix to this. I'm trying to create a Word Macro to remove time from date: This occurs in 4 different cells. Cell in Word shows: 05/04/2016 10:00:00 I just need the date to show without the...
Microsoft Office
How To Assign Different Macro
Hello, I got this Wireless 800 Microsoft keyboard and want to assign the Fn key with the windows minimize function instead. How do I do that? I tried looking for the Key Settings tab everywhere after downloading the driver for my keyboard but can't find it.
Hardware & Devices
Create a Date macro Word 2010
I'm having trouble creating a macro to insert the current date (static). Here's what I'm doing: View > Macros > Record Name: "Date" Store macro in: keyboard Shortcuts Click on keyboard picture Insert: CRTL+D & click Assign
Microsoft Office
MathType for word 2010 Macro settings error
Hello, I have Microsoft Office 2010 32bit installed, I installed MathType 6.7 today, and I'm getting errors on macro settings. I've looked it up on google, and enabled macro settings, copy the necessary files, but the same errors keeps popping up. When I launch Word 2010 I get this:...
Microsoft Office
word 2010 insert horizontal line & not automatically
Good People, Add me to the list of people who don't like the new ribbon. Before with 2007 I could insert a horizontal line of a certain width AND NOT using the auto option where 3 equals turns into a horizontal line. Now in 2010 the most I can get a minimal width horizontal line. I do not...
Microsoft Office


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:20.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App