Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-16-2016, 08:33 PM
Guessed's Avatar
Guessed Guessed is offline VBA code to add watermark in all pages Windows 10 VBA code to add watermark in all pages Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

A simple concept like a watermark is WAY more complicated than it should be because:
1. A watermark is a floating graphic stored in a header (or footer)
2. Each section can have up to three different headers
3. Each document could have a very large number of sections
4. Some headers are linked to (copies of) previous sections and some aren't
5. Floating graphics can be placed in any header of any section but VBA treats them as if they are stored only in Section 1's headers.
6. Adding watermarks over the top of other watermarks is bad so any complete macro solution needs to be able to identify and remove existing watermarks too.

Microsoft added the Design > Watermark functionality to Word around about v2007+ and this works well on simple documents (without too many section breaks and changes to page setups). However it falls down somewhat when document sections get complicated.

Code that puts in Watermarks is pretty time-consuming to create if it needs to deal with all the above issues. It can be done, but code like that is rarely spotted outside of paid jobs since the effort required is usually greater than the goodwill required to create it and then give it away for free.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code to add watermark in all pages Watermark not on all pages treadhead194 Word 2 04-29-2015 05:25 AM
Watermark profitdr123 Word 3 02-21-2015 01:04 PM
VBA code to add watermark in all pages Background/watermark won't go away Lea Word 6 04-07-2014 08:59 AM
VBA code to add watermark in all pages Problems with Watermark AOsment742 Word VBA 14 06-08-2012 07:20 AM
VBA code to add watermark in all pages Watermark saslotteroy Word 1 04-12-2011 03:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft