Hi Colin,
A global template usually means an addin which should override all the user
settings, I think that was what Shauna thought of when you described it as
such.
For another template however, it is not a strange idea to set the wrapformat
of course. However, I don't think it is possible to set the default
textmargin between picture and text for all the pictures.
If you really want to archieve something like this, you should write your
own code that inserts the picture.
Something like:
------------------------------------------------------------------------------------------------------
Sub InsertPicture()
Dim oShape As Shape
With Dialogs(wdDialogInsertPicture)
If .Display Then
'User pressed OK button
Set oShape = ActiveDocument.Shapes.AddPicture(FileName:=.Name,
Anchor:=Selection.Range)
With oShape
.WrapFormat.Type = wdWrapTopBottom
.WrapFormat.DistanceBottom = CentimetersToPoints(0.2)
.WrapFormat.DistanceTop = CentimetersToPoints(0.2)
End With
End If
End With
Set oShape = Nothing
End Sub
------------------------------------------------------------------------------------------------------
Name the macro InsertPicture will override the default Word command.
Hope this helps,
kind regards,
Astrid
> Hello Shauna,
>
[quoted text clipped - 45 lines]
>> > I want the top and bottom settings to be set to 0.2cm each.
>> > How do I add this to this code string?
Colinhp - 20 Nov 2006 12:05 GMT
Hello Astrid,
Many thanks for your help on this. Your solution works a treat.
Cheers,
Colin.
> Hi Colin,
>
[quoted text clipped - 87 lines]
> >> > I want the top and bottom settings to be set to 0.2cm each.
> >> > How do I add this to this code string?