3.2. Editing the Word Macro

Now, edit the Transpose_Word_Right macro that you created in Word and use it to build another macro. To begin, open the macro in the Visual Basic Editor:

  1. Start Word if it's not already running, or activate it.

  2. Press Alt+F8 or choose Tools Macro Macros to display the Macros dialog box.

  3. Select the Transpose_Word_Right macro, and then click the Edit button.

In the Code window, you should see code similar to Listing 3.1, except for the line numbers, which the book uses to identify the lines of code.

Example 3.1. Listing 3.1 ...

Get Mastering VBA for Microsoft Office 2007, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.