Modifying a Macro

graphics/microsoftoffice59.gif

If a macro doesn't work exactly the way you want it to, you can fix the problem without re-creating the macro. Instead of recording the macro over again, Word allows you to debug , or repair, an existing macro so that you can change only the actions that aren't working correctly. When beginning the process, Word will step through each of the actions that you supplied when you created the macro. Look carefully for any mistakes, and then correct as necessary.

Debug a Macro Using Step Mode

graphics/one_icon.jpg

Click the Tools menu, point to Macro, and then click Macros.

graphics/two_icon.jpg

Click the name of the macro you want to debug.

graphics/three_icon.jpg

Click Step Into.

graphics/four_icon.jpg

Click the Debug menu, and then click Step Into to proceed through each action.

graphics/five_icon.jpg

When you're done, click the File menu, and then click Close to return to your program.

graphics/six_icon.jpg

Click OK to stop the debugger.

graphics/16inf36.jpg

graphics/16inf37.jpg

Did You Know?

You can re-record a macro . If you make a mistake as you record a macro, click the Stop Recording button on the Stop Recording toolbar, and then record the macro again using the same name. Click Yes in the dialog box to confirm that you want to replace the existing macro with the same name.




Show Me. Microsoft Office Word 2003. See it Done, Do It Yourself
Show Me. Microsoft Office Word 2003. See it Done, Do It Yourself
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 310

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net