1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| ActiveDocument.Sections(1).Range.Select
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.HeaderFooter.Shapes.AddPicture(Filename:= "nom de l image.jpg" _
, LinkToFile:=False, SaveWithDocument:=True).Select
'on nomme l image pour pouvoir l effacer ensuite !!! sinon WORD lui attribue un nom unique arbitraire
Selection.ShapeRange.Name = "Sinature_000"
Selection.ShapeRange.PictureFormat.Brightness = 0.2 'par defaut 0.5
Selection.ShapeRange.PictureFormat.Contrast = 1 'par defaut 0.5
Selection.ShapeRange.LockAspectRatio = True
'on garde la taille originale ------------------------------ cf note
' Selection.ShapeRange.Height = CentimetersToPoints(26.21)
' Selection.ShapeRange.Width = CentimetersToPoints(18.99)
Selection.ShapeRange.WrapFormat.AllowOverlap = True
Selection.ShapeRange.WrapFormat.Side = wdWrapNone
Selection.ShapeRange.WrapFormat.Type = 3
Selection.ShapeRange.RelativeHorizontalPosition = wdRelativeVerticalPositionMargin
Selection.ShapeRange.RelativeVerticalPosition = wdRelativeVerticalPositionMargin
Selection.ShapeRange.Left = wdShapeCenter 'wdShapeRight 'wdShapeCenter == differentes options a essayer
Selection.ShapeRange.Top = wdShapeCenter 'wdShapeBottom 'wdShapeCenter |