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
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