Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
programming4us
Windows 7

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

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
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
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server