![]() |
#1
|
|||
|
|||
![]()
Hi!
I need to arrange shapes so that each figure is on a document page. The shapes are from JPG which I drag and drop into the document (as inlineshapes). I started with this code: Code:
Sub ResizePic() Dim x As Integer With ActiveDocument.PageSetup .LeftMargin = CentimetersToPoints(1) .RightMargin = CentimetersToPoints(1) .TopMargin = CentimetersToPoints(1) .BottomMargin = CentimetersToPoints(1) sWidth = .PageWidth - .LeftMargin - .RightMargin End With For x = 1 To ActiveDocument.InlineShapes.Count ActiveDocument.InlineShapes(1).Width = sWidth ActiveDocument.InlineShapes(1).ConvertToShape Next x For x = 1 To ActiveDocument.Shapes.Count ActiveDocument.Shapes(x).WrapFormat.Type = wdWrapSquare Next x End Sub Thanks!
__________________
Backup your original file before doing any modification. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
MKTGCLOUD | Excel | 8 | 11-28-2018 07:35 PM |
![]() |
Steve. | Project | 3 | 05-17-2014 07:07 AM |
Organize a shared mailbox with categories | remmyMartin | Outlook | 0 | 04-03-2013 01:40 PM |
Organize Sent mail/items | outlookissues | Outlook | 0 | 05-13-2012 08:55 AM |
organize files | userman | Excel | 13 | 05-04-2012 03:49 PM |