Watermark in a Macro

K

Keith R. Sylvester

I have a macro that has a watermark in it. When I run it on my system,
which has Windows 2000 and office 2000 small business, it runs fun, it also
runs fine on every other system here, except one, which is running XP pro
and office 2000. The problem comes when it tries to center it on the page.
It centers is verticaly no problem, but when it tries to center it
horizontally, it centers the middle of the picture with the left edge of the
page. We cannot recreate this problem on any other system. Could that
version of Word be corrupt. I will paste that part of the code below.
Thanks!

Keith

The problem lies within here somewhere: Selection.ShapeRange.Left =
wdShapeCenter

Selection.ShapeRange.RelativeHorizontalPosition = _
wdRelativeVerticalPositionMargin
Selection.ShapeRange.RelativeVerticalPosition = _
wdRelativeVerticalPositionMargin
Selection.ShapeRange.Left = wdShapeCenter
Selection.ShapeRange.Top = wdShapeCenter
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
 
D

DA

Hi Keith

Two things I'd check here.

Firstly, you are setting your relative horizontal
positioning to wdRelativeVerticalPositionMargin.
Although both it and the WdRelativeHorizontalPosition
constants have a value of "0", I'd still change it around.

Secondly, have you checked your margin setup in your
problem document to ensure that it is not set to the edge
of the page?

Regards,
Dennis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top