![]() |
|
#2
|
||||
|
||||
|
For example:
Code:
Sub LOGO1()
Application.ScreenUpdating = False
Dim Rng As Range, i As Long, Shp As Shape, ImageName As String
ImageName = "/Users/federicopannacci/Desktop/bcube_logo.png"
With ActiveDocument
For i = 1 To .ComputeStatistics(wdStatisticPages)
Set Rng = .Range.GoTo(What:=wdGoToPage, Name:=i)
Set Shp = .Shapes.AddPicture(FileName:=ImageName, LinkToFile:=False, Anchor:=Rng, _
Top:=CentimetersToPoints(25), Left:=CentimetersToPoints(6), Width:=95, Height:=45)
With Shp
.LockAspectRatio = True
.WrapFormat.Type = wdWrapBehind
.LockAnchor = True
.RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
.RelativeVerticalPosition = wdRelativeVerticalPositionPage
End With
.Hyperlinks.Add Anchor:=Shp, SubAddress:="_top"
Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| image layout, move with text |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Magic" indentation for "too-long" text-lines that are longer than one line | pGrnd | Word | 2 | 04-20-2020 03:23 PM |
| Change default move row behavior to "shift-move" | JoshM | Excel | 2 | 10-05-2018 05:06 AM |
| onenote no "copy text from image" option | vinci | OneNote | 0 | 02-29-2016 01:53 AM |
| Image Disappearing With "In Line With Text" Option | lax828 | Word | 6 | 08-21-2014 08:49 AM |
| Why the "decrease indent" doesn't affect the selected text to move???? | Jamal NUMAN | Word | 0 | 07-12-2011 04:10 PM |