+ Reply to Thread
Results 1 to 6 of 6

Adding watermarks in Word using Excel/VbA

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Adding watermarks in Word using Excel/VbA

    Hi Guys

    I want Excel / VBA code that will help me in inserting watermarks on Word document. I have a userform in excel and when the user click on a button then it should insert watermark in the word document.

    I hope anyone can help me in this

    Thanks

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Adding watermarks in Word using Excel/VbA

    Please post the code you're using to automate the Word document.

    FWIW, watermarks in Word are simply content inserted into the page header.

    PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Adding watermarks in Word using Excel/VbA

    Hi

    I am using the following code. It opens a word document but it doesn't display a watermark. Any help would be much appreciated.

    code behind Form on Button :

    Please Login or Register  to view this content.
    Code Behind Module :

    Please Login or Register  to view this content.

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Adding watermarks in Word using Excel/VbA

    Because you're using late binding, you need to either declare all the Word constants or use their values directly. You also need to pass the application and document references to your function.

    Try:
    Please Login or Register  to view this content.
    PS: You'll also see that my code doesn't reference your 'BackGroundPicture' bookmark. Rather, it references the header directly. That way, it doesn't matter whether the bookmark gets deleted.
    Last edited by macropod; 11-05-2013 at 06:16 PM.

  5. #5
    Registered User
    Join Date
    02-28-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Adding watermarks in Word using Excel/VbA

    Macropod,
    I would like to add an emailadress as watermark in my ebook in stead of a picture.
    What should I change im the VBA above?
    Can you help me?

  6. #6
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Adding watermarks in Word using Excel/VbA


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding table row to word from excel vba
    By HarryKlein in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2011, 10:39 AM
  2. Adding data from Excel to Word through VBA
    By wildjester in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2009, 07:42 PM
  3. Excel and Watermarks
    By HT1 in forum Excel General
    Replies: 2
    Last Post: 03-14-2007, 02:12 AM
  4. How do I put page numbers as watermarks in Excel
    By Bill in forum Excel General
    Replies: 1
    Last Post: 02-21-2006, 10:45 AM
  5. Adding empty row to word from excel
    By Cello in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2005, 05:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1