Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word VBA
Macro for Picture size and crop, layout and position in table.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="rv.aleixo.alves, post: 7409159"] Thank you! It seems to be working fine now! Here is the final code: Sub FDiagCoord() ' ' Formatar os diagramas que têm coordenadas. ' On Error GoTo ErrorHandler Dim oILS As InlineShape Set oILS = Selection.InlineShapes(1) With oILS .PictureFormat.CropLeft = CentimetersToPoints(0.6) .PictureFormat.CropTop = CentimetersToPoints(0.6) .PictureFormat.CropRight = CentimetersToPoints(0.6) .PictureFormat.CropBottom = CentimetersToPoints(0.4) .LockAspectRatio = True .ScaleHeight = 60 End With Set oShp = Selection.InlineShapes(1).ConvertToShape oShp.WrapFormat.Type = wdWrapTopBottom oShp.ZOrder msoSendToBack With oShp .RelativeHorizontalPosition = wdRelativeHorizontalPositionColumn .Left = wdShapeCenter .RelativeVerticalPosition = wdRelativeVerticalPositionParagraph .Top = sglTop End With Exit Sub ErrorHandler: End Sub [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Word Newsgroups
Word VBA
Macro for Picture size and crop, layout and position in table.
Top