1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Sub InsertPageBackground()
Dim shape1 As Shape
Dim imagePath1 As String
imagePath1 = "MacPro 1:xClients:60-166UNSS, Gabarits Word & Powerpoint:12imports:fond-regional.png"
Set shape1 = ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Shapes.AddPicture(imagePath1)
With shape1
.WrapFormat.AllowOverlap = True
.WrapFormat.Side = wdWrapBoth
.LockAspectRatio = msoTrue
.WrapFormat.Type = 3
.ZOrder 5
.RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
.RelativeVerticalPosition = wdRelativeVerticalPositionPage
.Left = MillimetersToPoints(0)
.Top = MillimetersToPoints(0)
.Width = MillimetersToPoints(210)
End With
End Sub |
Partager