Troubleshoot macros

Microsoft Office PowerPoint 2003

check box; use digital signatures; maintain a list of trusted publishers.

ShowWhen I click Refresh, a message tells me that my macro changes will be lost.

This message appears when you have made changes to a macro in Microsoft Visual Basic Editor and have also changed the copy of your presentation in Microsoft Script Editor.

To save the changes to your macro, do the following:

  1. Click No when the message appears.
  2. Switch to the Visual Basic Editor window.
  3. On the File menu, click Export File to export any modules you have changed.
  4. In your presentation in Script Editor, click Refresh Button image on the Refresh toolbar, and then click Yes.
  5. In Microsoft PowerPoint, import the modules to restore the changes to your macro.

ShowWhile recording a macro, I recorded an action I didn't want.

To undo an unwanted action in a macro, you can open the macro in Microsoft Visual Basic Editor (Tools menu, Macro command, Visual Basic Editor submenu) and remove any unwanted steps.

ShowA macro I recorded sometimes produces an error message.

A macro you record may not run properly in every situation. If the macro cannot run, Microsoft PowerPoint displays an error message. Some macros depend on certain options or settings in PowerPoint. For example, a macro that inserts a drawing object won't run properly if you are in slide sorter view. If a macro you've recorded produces an error message, note the error number. You can then search for "error messages" in Microsoft Visual Basic Help and find information about the message you received.