Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
macro produces error message
Hello smart Word people,
I'm trying to create a macro on a template that automatically removes the DRAFT watermark from the document, and I want to add a button for this new macro to the custom toolbar that already exists in the template. Per Word online Help, I've tried Tools Macro Record New Macro, and clicked the toolbar icon and recorded the steps for removig the watermark. When I record the macro, the watermark disappears, as I expect it to. However, when I later add the watermark back in to test the macro, and try to use the button, I get a runtime error message ("the item with the specified name wasn't found"). When I click the debug button, VB indicates the following faulty code: Selection.HeaderFooter.Shapes("PowerPlusWaterMarkO bject2").Select. Also, the new macro does not appear when I select Tools Macro on the menu bar. What's going wrong? Ideally, I'd like a macro button that lets the user toggle between having the DRAFT watermark turned on and off, but right now I'd just settle for a button that works properly to turn off the draft watermark. Thanks in advance for your help, Kimmie B |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Table in a Form | Tables | |||
Macro Button Won't Stay on Toolbar | Microsoft Word Help | |||
Possible bug when recording a Word Macro | Microsoft Word Help | |||
Running document macro from server | New Users | |||
2000 to 2002 macro and "Could not open macro storage" | Mailmerge |