Using VBA to control watermarks

F

FredWestsThumb

Hi,

I'm using Word2002 I can set a Watermark using the menu's but I really
want to use VBA to capture the client's name and build some macro's to
control the deleting and re-enabling of the watermark.

I'm using the following code to delete the watermark ...

Selection.HeaderFooter.Shapes("PowerPlusWaterMarkObject1").Select
Selection.Delete

How can I check that the PowerPlusWaterMark object exists ?

My plan is to .......

1) Initially capture a client name using a dialog box
2) Delete the watermark object if it exists
3) Set the watermark to the client name
4) Set the first text field on a page to the client name

Moving on to .....

4) If possible replace the use of a dialog box to capture the name with
stripping it out of a text field with the whole process initiated by
moving off the text field containing the client name.

Most of this must be possible I would assume, has anyone done this
before or can point me at some code examples to handle the watermark
object , interact with a simple one line text field and trigger the
execution of the VBA when departing the field?.

Thanks in advance
FWT
 
W

Word Heretic

G'day FredWestsThumb <[email protected]>,

Iterate the collection entire testing for presence.


Steve Hudson
Word Heretic Sydney Australia
Tricky stuff with Word or words

Email: WordHeretic at tpg.com.au


FredWestsThumb was spinning this yarn:
 

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