View Single Post
 
Old 02-21-2016, 05:58 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It's a good thing you provided the attachment; they're not textboxes but frames. As per my previous advice, you could move one such frame into the page header and delete the rest, but the following code just changes the alignment:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long, sngPos As Single
With ActiveDocument
  For i = 1 To .Frames.Count
    With .Frames(i)
      If .Range.Text Like "*(??? ## - ??? ##)" Then
        sngPos = .HorizontalPosition
        Exit For
      End If
    End With
  Next
  For i = 1 To .Frames.Count
    With .Frames(i)
      If InStr(.Range.Text, "Main Accounts Group :") > 0 Then
        .HorizontalPosition = sngPos
      End If
    End With
  Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote