![]() |
|
#2
|
||||
|
||||
|
You might try a macro like the following. It ensures all shape objects are positioned within the page margins.
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Shp As Shape, iShp As InlineShape
For Each Shp In ActiveDocument.Shapes
With Shp
If (.Top < .Anchor.PageSetup.TopMargin) Or _
(.Left < .Anchor.PageSetup.LeftMargin) Or _
(.Top > .Anchor.PageSetup.BottomMargin - .Height) Or _
(.Left < .Anchor.PageSetup.RightMargin - .Width) Then
Set iShp = .ConvertToInlineShape
iShp.ConvertToShape
End If
End With
Next
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Auto back to top of page
|
Staywme | Word | 2 | 11-26-2016 05:30 PM |
| Radio buttons in a particular page gets disabled when i scroll down and return back to that page. | arnprd | Word | 0 | 06-18-2015 10:54 AM |
Deleting Lines Pulls Back Next Page
|
SQLUSA | Word | 5 | 12-18-2012 03:53 PM |
no page numbers -- how do i get them back -- only {page} at the header
|
Straitsfan | Word | 4 | 06-27-2012 02:46 PM |
| My plain text post got converted to rich text in a reply, how to convert it back? | david.karr | Outlook | 0 | 01-05-2012 09:46 AM |