Create and use automated macros in Word 2010
Many people may not know about the benefits of macros when running automatically in Word 2010. These are Word commands stored in a file and executed when used, like a small program. For example, if you create a lot of work document scripts, you can create a macro yourself.
A macro is a command that executes a job script. Creating a macro is the recording of a set of user processing operations (Record Macro) then saving as a set of commands and placing in a " MacroName ". The recorded language (representing work in macros) in MS Office is VB (not VB.NET). When you need to do the same job as you did, just run the MacroName (press ALT + F8 ) to redo a script. The macros automatically provide the words given by different circumstances, listed by name, which are:
- AutoNew - When you create a new document
- Autoclose - Whenever you close a document
- AutoExec - Whenever you start Word
- AutoExit - Whenever you exit Word
- AutoOpen - Whenever you open a new document
To use macros, you must first create them and they are created the same way as any other macro in Word, by recording the actions you want to make the macro.
To start, click the View tab on the main interface of Word 2010, Then, click the Macros section drop-down button on the right.
Create and use automated macros in Word 2010 Picture 1
Click the Record Macro item to start creating your macro.
Create and use automated macros in Word 2010 Picture 2
Before you can start, in the Record interface Macro you name the Macro automatically at the Macro name entry. If you want your new macro to run whenever you create a new document, name it AutoNew and select the Hammer button in the Assign macro big box . This commands Word to assign macros to a button on the Quick Access Toolbar , because you can then run macros at other times.
Create and use automated macros in Word 2010 Picture 3
Next, you will get the interface of Customize the Quick Access Toolbar . That's the interface that allows you to assign the macro you are creating, then double-click on Normal.NewMacros.AutoNew section of your macro to assign and click the Ok button.
Next you return to the Word document, the cursor will now look like a cassette tape, which means it will record your actions.
Create and use automated macros in Word 2010 Picture 4
When you're done, press the drop-down button again in the original Macros section at the View tab again, select Stop Recording , to finish creating the macro.
Create and use automated macros in Word 2010 Picture 5
Now, try again by clicking on the New Document icon (or File, New and Blank Document) to start a new document.
Create and use automated macros in Word 2010 Picture 6
When Word opens the new document it will automatically run the macro, you will see the generated content will be formatted and the titles added in the item you created when setting up the macro.
In the same setting, you can use other automated macros to run automatically when you start, exit, or open a new document to make your work easier in Word.
You should read it
- How to create Macros in Word 2007
- Instructions on how to create and use macros in Excel Create macros, save macros, run macros
- How to create and use macros in Word
- The easiest way to Use Macros in Excel
- How to fix Office error 'The function you are attempting to run contains macros'
- MS Excel 2007 - Lesson 7: Create Macros in Excel 2007
- How to enable macros on Excel
- How to Use Macros in Excel
- How to automate Google Sheets with macros
- How to turn on and off macros in Microsoft Office 365
- Instructions for creating Macros in Excel
- What is a macro in Excel? How to create and run a Macro in Excel
May be interested
Edit Office Web Apps documents with MS Office
Turn off the message Send message without a subject in Outlook 2010
Display the full file path in the Quick Access toolbar
Instructions for opening and converting Microsoft Works file formats
Convert PDF format to EPUB, MOBI or HTML
Sync data on computers and Google Docs accounts with SyncDocs