A
Alcide
Hello All,
I generally prefer my textbox margins to be zero and I'd like to create a
macro to do that. So far I have the following code:
Sub FormatTextBox()
Dim myShape As Shape
Dim myPage As Page
For Each myPage In ActiveDocument.Pages
For Each myShape In myPage.Shapes
With myShape
.MarginBottom = 0
.MarginTop = 0
.MarginRight = 0
.MarginLeft = 0
End With
Next myShape
Next myPage
End Sub
It compiles but doesn't work.
What am I missing here?
My appreciation in advance for your assistance.
I generally prefer my textbox margins to be zero and I'd like to create a
macro to do that. So far I have the following code:
Sub FormatTextBox()
Dim myShape As Shape
Dim myPage As Page
For Each myPage In ActiveDocument.Pages
For Each myShape In myPage.Shapes
With myShape
.MarginBottom = 0
.MarginTop = 0
.MarginRight = 0
.MarginLeft = 0
End With
Next myShape
Next myPage
End Sub
It compiles but doesn't work.
What am I missing here?
My appreciation in advance for your assistance.