Creating "DRAFT" watermark using VBA

D

David Beamish

I am trying to create a macro to insert a "DRAFT" watermark. I want it to
work on multi-section documents with headers of later sections not linked to
the previous header. Experimenting with the Format/Background/Printed
Watermark dialogue and the macro recorder shows that extra code is generated
if there is an unlinked later section. So the obvious way to keep the macro
general seems to be to execute the dialogue using VBA. But I cannot find it
in the list of "wddialog" names. Advice gratefully received!

I am using Word 2002.
 
J

Jezebel

Doesn't seem obvious to me. But anyway, you can get a list of available
dialogs in any number of ways: in the immediate window, type Dialogs( --
the intellisense will give you a drop-down list of all the built-ins. Also
available from the object browser. More usefully, check the help topic
"Built-in dialog box argument lists"

But I don't understand what you want the dialog for. Why not just iterate
the headers, inserting the watermark in each?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top