Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-13-2016, 02:45 AM
DougMVP DougMVP is offline Creating watermark macro for 400 staff Windows 7 32bit Creating watermark macro for 400 staff Office 2010 32bit
Advanced Beginner
 
Join Date: Nov 2013
Posts: 50
DougMVP will become famous soon enough
Default

Try

Code:
Dim WM As Shape
With Selection.Sections(1).Headers(wdHeaderFooterPrimary)
    If .Shapes.count > 0 Then
        .Shapes(1).Delete
    End If
    Set WM = .Shapes.AddPicture(filename:="E:\IT\MS Office 2013\PREP Watermark.png")
    With WM
        With .PictureFormat
            .Brightness = 0.5
            .Contrast = 0.5
        End With
        .LockAspectRatio = True
        .Height = CentimetersToPoints(14.34)
        .Width = CentimetersToPoints(15.92)
        .WrapFormat.Type = 5
        .RelativeHorizontalPosition = wdRelativeVerticalPositionMargin
        .RelativeVerticalPosition = wdRelativeVerticalPositionMargin
        .Left = wdShapeCenter
        .Top = wdShapeCenter
    End With
End With
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating watermark macro for 400 staff help creating macro tingker Word VBA 4 01-08-2015 08:58 PM
Creating watermark macro for 400 staff Need Help Creating Macro rsrasc Word VBA 4 03-28-2014 01:31 PM
Creating watermark macro for 400 staff Project as a Staff-tracking Tool Kerry Project 1 03-01-2012 02:46 PM
creating macro steveb Word VBA 0 08-14-2010 01:29 AM
Using MSP to predict staff resource jarvo273 Project 0 05-13-2010 04:05 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:20 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