Monday, October 27, 2008

Macro in-class assignment #2 -- copying a macro created by someone else

We've learned how to create our own macros using Word's Macro Recorder. And when we learned how to print a macro by going to Tools / Macros / Macro / Edit, we were shown the programming code in BA (Visual Basic for Applications.

All this prepares use for the next stage of macros - using macros someone else has written. Some people are experts in VBA and have created some very useful macros. We can use them simply by copying and pasting their code into the VBA Editing window.

For some examples, look at word.tips.net, select a topic that interests you (Bullets and Numbering, Creating Documents, Customizing Word, etc.), and search for an interesting macro.

ASSIGNMENT -- Create a new document in Word. Create the macro by copying the code into the macro editor of your Word document. Test it to see that it works. Then clear the document, and copy the macro code into it. Add your name, teacher's name, Period, and a description of what the macros does. Print and hand in for marking.