View Single Post
 
Old 06-28-2011, 06:15 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Hi JO'BN,

try siomething based on the following:
Code:
Sub FilePrint()
If Application.Dialogs(wdDialogFilePrint).Show = -1 Then Call ChkPageNoFormat
End Sub
 
Sub ChkPageNoFormat()
Dim Sctn As Section, oHdFt As HeaderFooter, oShp As Shape
With ActiveDocument
  For Each Sctn In .Sections
    For Each oHdFt In Sctn.Footers
      With oHdFt
        If .LinkToPrevious = False Then
          On Error Resume Next
          For Each oShp In .Range.ShapeRange
            With oShp.TextFrame
              If .HasText Then
                .WordWrap = False
                .AutoSize = True
                .MarginBottom = 1
                .MarginLeft = 1
                .MarginRight = 1
                .MarginTop = 1
              End If
            End With
          Next
        End If
      End With
    Next
  Next
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote