Microsoft Office Tutorials and References
In Depth Information
Topic B: Modifying and deleting macros
B-1: Modifying a macro
The files for this activity are in Student Data folder Unit 3\Topic B .
1 Open Macros complete
Click Enable Content
To enable macros in this document.
2 Save the document as
My macros complete
3 Open the Macros dialog box
On the View tab, click the top part of the Macros
To open Microsoft Visual Basic for
4 Edit the code as shown
(Located in the line of code that begins with
ActiveDocument.Tables.Add Range .)
To increase the number of rows in the table
from two to 10.
Close Microsoft Visual Basic for
Choose File, Close and Return to Microsoft
5 Place the insertion point at the
end of the document
6 Run the Table macro
(Click the button on the Quick Access toolbar.)
A table with three columns and 10 rows is added
to the document. You might need to scroll to see
the entire table.
7 Update the document