Macro to insert size and position picture (1 Viewer)

paraclete

New member
Local time
Today, 18:29
Joined
Nov 13, 2012
Messages
3
Hi. I need a macro to insert a picture into a word document, resize it (no problem so far as I have found I can do that with record a macro) but I also need to format it to behind the text and position it on the page. These last two are grayed our during macro record, and I cannot select the picture. Are there statements to do these functions in a macro and if so what are they or where can I find them please? Thanks in advance for your help and insights.
 

gerry@docshop.ie

Registered User.
Local time
Today, 18:29
Joined
Jun 19, 2013
Messages
41
I use the WITH statement to insert and manipulate my logo onto various documents


Sub ChangePicture()
'
' Change Picture properties Macro
' type a '.' inside the with statement to see all the options available
'
With ActiveDocument.Shapes.AddPicture("FilePath and Name")
'change the Wrapping
.WrapFormat.AllowOverlap
.WrapFormat.Type = wdWrapBehind

'Change the position in centimeters
.Top = CentimetersToPoints(1.2)
.Left = CentimetersToPoints(2.5)


End With
End Sub
 

paraclete

New member
Local time
Today, 18:29
Joined
Nov 13, 2012
Messages
3
Thank you, I'll check it out
 

Users who are viewing this thread

Top Bottom