Microsoft Visual Basic for applications (VBA) is a language in which programming, you save links for you to use time and keystrokes.
For example, if you constantly find themselves entering the same phrase in a Word document again, write a VBA macro or piece of executable code that can perform the task for you. Once you have written the code, that is you press a key, Word inserts the specified text. Difficulty: difficultInstructionsThings you need: Microsoft Word 2007 or 2010- 1
Press "Alt" and "F11" from within the Word document where you want to insert the text.
- 1
Press "Alt" and "F11" from within the Word document where you want to insert the text.
Click "Insert" and then on "Modules" to open a blank module window.
Cut and paste the following code into the blank window: Sub MyTextIntoDocument()' MyTextIntoDocument selection.TypeText text macro: = _ "this is the text into a Word document inserted."
Replace the text in the code with the text you want to insert into your document.
Press the "F5" key to run the macro.
No comments:
Post a Comment