Modifying a Macro

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, Office allows you to debug , or repair, an existing macro so that you change only the actions that aren't working correctly.

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 And Return To [Program name].

graphics/six_icon.jpg

Click OK to stop the debugger.

graphics/02inf43.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 2003
Show Me Microsoft Office 2003
ISBN: 0789730073
EAN: 2147483647
Year: 2002
Pages: 418

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