C
Cory
I am using VBA code to paste a copied shape to the Master page and then
following on to manipulate the shape (.Top, .Left, etc.). When I refer to
the recently pasted shape (i.e.
ActiveDocument.Pages(1).Master.Shapes(ActiveDocument.Pages(1).Master.Shapes.Count)
which should select the pasted shape since it is the "top" shape) it does
not always select the correct shape.
When running with Breakpoints, and stepping through the code, it works as
intended. WHen running without breaks, it screws up royally. Is there some
other way to refer to that shape? I have tried the following:
With ActiveDocument.Pages(1).Master.Shapes.Paste
.Top = SoAndSo
End With (did not work; Object Required)
Set PastedShape = ActiveDocument.Pages(1).Master.Shapes.Paste
PastedShape.Top = SoAndSo (also did not work, but forget error message)
Any help would be appreciated. Using Publisher 2002.
Cory
following on to manipulate the shape (.Top, .Left, etc.). When I refer to
the recently pasted shape (i.e.
ActiveDocument.Pages(1).Master.Shapes(ActiveDocument.Pages(1).Master.Shapes.Count)
which should select the pasted shape since it is the "top" shape) it does
not always select the correct shape.
When running with Breakpoints, and stepping through the code, it works as
intended. WHen running without breaks, it screws up royally. Is there some
other way to refer to that shape? I have tried the following:
With ActiveDocument.Pages(1).Master.Shapes.Paste
.Top = SoAndSo
End With (did not work; Object Required)
Set PastedShape = ActiveDocument.Pages(1).Master.Shapes.Paste
PastedShape.Top = SoAndSo (also did not work, but forget error message)
Any help would be appreciated. Using Publisher 2002.
Cory