![]() |
#5
|
||||
|
||||
![]()
You can't bookmark a shape object. You might bookmark its anchor but, better still, if you name the shape, you can use the name for future reference.
Code:
Sub TITLE() Application.ScreenUpdating = False Dim Shp As Shape With ActiveDocument.Sections(1) With .PageSetup .DifferentFirstPageHeaderFooter = True .TopMargin = CentimetersToPoints(5) End With Set Shp = .Headers(wdHeaderFooterFirstPage).Shapes.AddPicture _ (FileName:="Z:\Logo1.jpg", LinkToFile:=False, SaveWithDocument:=True) With Shp .Height = CentimetersToPoints(4.94) .Width = CentimetersToPoints(3.58) .LockAspectRatio = True .Left = CentimetersToPoints(13.67) .Top = CentimetersToPoints(-1.23) .WrapFormat.AllowOverlap = True .WrapFormat.Side = wdWrapNone .Name = "Logo1" End With Set Shp = .Headers(wdHeaderFooterFirstPage).Shapes.AddPicture _ (FileName:="Z:\Logo2.jpg", LinkToFile:=False, SaveWithDocument:=True) With Shp .Height = CentimetersToPoints(4.29) .Width = CentimetersToPoints(4.84) .LockAspectRatio = True .Left = CentimetersToPoints(7.83) .Top = CentimetersToPoints(-0.27) .WrapFormat.AllowOverlap = True .WrapFormat.Side = wdWrapNone .Name = "Logo2" End With End With Set Shp = Nothing Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Catty | Word VBA | 1 | 05-05-2014 03:42 AM |
![]() |
Amapola188 | Word VBA | 3 | 07-12-2012 05:16 PM |
Macro to insert new page... | samanthaj | Word | 17 | 01-31-2012 01:53 PM |
![]() |
faramir | Word VBA | 4 | 11-16-2011 05:43 AM |
![]() |
Shafraz Khahir | Word | 1 | 11-29-2010 11:52 AM |