Set Watermark in a word doc (1 Viewer)

Lanason

Registered User.
Local time
Today, 02:34
Joined
Sep 12, 2003
Messages
258
Hello,

I'm using Access to control .docx documents and I want to copy a document and then add a "DRAFT" watermark into it. I have copied fine but is there a bit of code that can add the water mark?
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 21:34
Joined
Feb 19, 2002
Messages
43,223
Those links look like they will solve this problem for you but in the future, when working with Excel or Word and trying to automate them from Access, you can sometimes get Word/Excel to generate the code you need. Just open the app and turn on the macro recorder. Perform the action of setting the watermark or whatever using the interface. Turn off the macro recorder and examine the code that was generated. Sometimes you can use it exactly as the macro recorder wrote it but sometimes you need to change it a little since the way you reference word/Excel objects from WITHIN word/Excel is a little different from how you would reference objects when using OLE automation.
 

Users who are viewing this thread

Top Bottom