Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Kimmie B
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table in a Form HiDbLevel Tables 12 February 27th 06 12:59 PM
Macro Button Won't Stay on Toolbar caleb Microsoft Word Help 2 June 14th 05 11:59 PM
Possible bug when recording a Word Macro Raven95 Microsoft Word Help 4 April 30th 05 09:49 PM
Running document macro from server Intravler New Users 0 March 4th 05 04:33 AM
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 12:40 PM


All times are GMT +1. The time now is 11:01 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"