Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    W97 - Insert watermark position within page

    W97 - VBA
    I have to insert a watermark designed in WordArt.
    There are many templates mostly with different page setups & margins.
    The watermark has to be centred within the page.
    When the watermark is inserted the end result position is it is centred between the margins.

    Due to many templates different page setup/margin formats is there an easier method than hard coding each position of watermark depending on template/margin setup?
    TIA Diana

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: W97 - Insert watermark position within page

    If you define the position of the graphic anchored to the page then you should be able to do this irrespective of where the margins sit.
    Depending on how big your page and graphic are the following code should make placing consistent.

    Selection.ShapeRange.RelativeHorizontalPosition = _
    wdRelativeHorizontalPositionPage
    Selection.ShapeRange.RelativeVerticalPosition = _
    wdRelativeVerticalPositionPage
    Selection.ShapeRange.Left = CentimetersToPoints(10)
    Selection.ShapeRange.Top = CentimetersToPoints(10)
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: W97 - Insert watermark position within page

    Thanks Andrew that worked for my different templates!!! Diana

Posting Permissions

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