Logo
HOW TO
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows 7

Microsoft Word 2010 : Expanding Word Functionality - Recording a Macro & Creating a Macro

8/13/2011 4:46:12 PM

Recording a Macro

If you find yourself repeating the same set of steps over and over, you can record a macro. Macros can run several tasks for you at the click of a button. When you turn on the macro recorder, Word records every mouse click and keystroke action you execute until you turn off the recorder. You can even record formatting changes to charts and other objects (New!). Then you can “play,” or run, the macro whenever you want to repeat that series of actions—but Word will execute them at a much faster rate. The macro recorder doesn’t record in real time, so you can take your time to correctly complete each action.

Record a Macro

Click the Developer or View tab.
Click the Record Macro button.

  • If you use the View tab, click View Macros on the menu.

Timesaver

To quickly start or stop a macro recording, click the Record icon or Stop Record icon on the Status bar (left side).

Type a name for the macro.

Assign a shortcut key to use a keystroke combination or assign a button to run the macro.

Click the Store macro in list arrow, and then select a location.

  • All Documents. The macro is available whenever you use Word.

  • Documents Based On. The macro is available in documents based on this document.

  • This Document. The macro is available only in this document.

If you want, type a description.

Click OK.

Execute the commands or actions you want to complete the task.

Click the Stop Recording button.

Creating a Macro

If you find yourself repeating the same set of steps over and over, or if you need to add new functionality to Word, you could create a macro. If you find it difficult to record a macro, you can create one using a programming language called Microsoft Visual Basic for Applications (VBA). With VBA, you create a macro by writing a script to replay the actions you want. The macros for a particular document are stored in a macro module, which is a collection of Visual Basic codes.

Create a Macro

Click the Developer or View tab.

Click the Macros button.

  • If you use the View tab, click View Macros on the menu.

Type a name for the macro.


Click the Macros in list arrow, and then click All active templates and documents or the document to which you want the macro stored.

Click Create.

The Microsoft Visual Basic window opens.

Click the Module window (if necessary), and then type new Visual Basic commands, or edit existing ones.



To run the macro, press F5.

When you’re done, click the Save button, click the File menu, and then click Close and Return to Microsoft Word.
Other -----------------
- Microsoft Word 2010 : Expanding Word Functionality - Setting Developer Options & Understanding How Macros Automate Your Work
- Microsoft PowerPoint 2010 : Adding Password Protection to a Presentation
- Microsoft PowerPoint 2010 : Creating, Opening OneNotes & Inspecting Documents
- Visual Basic 2010 : Documenting the Source Code - Implementing XML Comments
- Visual Basic 2010 : Documenting the Source Code - Understanding XML Documents
- Microsoft Visio 2010 : Linking Data to Shapes Automatically
- Microsoft Visio 2010 : Refreshing Selected Data in Linked Diagrams & Scheduling Data Refresh
- Microsoft Excel 2010 : Building More Powerful Worksheets - Using Logical & Financial Functions
- Microsoft Excel 2010 : Building More Powerful Worksheets - Using Date & Time Functions
- Microsoft PowerPoint 2010 : Editing Comments in a Presentation
 
 
REVIEW
- First look: Apple Watch

- 10 Amazing Tools You Should Be Using with Dropbox
 
VIDEO TUTORIAL
- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

- How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
 
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
Top 10
- Microsoft Excel : How to Use the VLookUp Function
- Fix and Tweak Graphics and Video (part 3) : How to Fix : My Screen Is Sluggish - Adjust Hardware Acceleration
- Fix and Tweak Graphics and Video (part 2) : How to Fix : Text on My Screen Is Too Small
- Fix and Tweak Graphics and Video (part 1) : How to Fix : Adjust the Resolution
- Windows Phone 8 Apps : Camera (part 4) - Adjusting Video Settings, Using the Video Light
- Windows Phone 8 Apps : Camera (part 3) - Using the Front Camera, Activating Video Mode
- Windows Phone 8 Apps : Camera (part 2) - Controlling the Camera’s Flash, Changing the Camera’s Behavior with Lenses
- Windows Phone 8 Apps : Camera (part 1) - Adjusting Photo Settings
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro