Our company has just been taken over and I need to delete the old logo in aprox 1000 document headers.
I am using the following – in an open file/close file loop to delete the graphics:
‘First unprotect the Form
ActiveDocument.Unprotect Password:=”xxxx”
If ActiveWindow.View.SplitSpecial wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
ActivePane.View.Type = wdOutlineView Or ActiveWindow.ActivePane.View.Type _
= wdMasterView Then
ActiveWindow.ActivePane.View.Type = wdPageView
End If
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.HeaderFooter.Shapes(“Picture 1″).Select
Selection.ShapeRange.delete
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
‘Then reprotect the form
ActiveDocument.Protect Password:=”xxxx”, NoReset:=True, Type:= _
wdAllowOnlyFormFields
But this will only delete the graphic in the first header.
Would someone be kind to enough to amend the code for me so that it will delete all graphics in all headers?
The graphics are all floating tiffs or gifs.
Many thanks,
David