Hi Sol
I was hoping the commands were enough to understand it... translation
see below!
Martin
> Hello
>
[quoted text clipped - 21 lines]
> >
> > ' Bildschirm wird nicht aktualisiert
' stop screen updating
> > Application.ScreenUpdating = False
> >
> > ' temporäre Textmarke an aktueller Stelle gesetzt
' temporary bookmark to mark actual position
> > ActiveDocument.Bookmarks.Add Name:="temp"
> >
> > ' Gehe zu Seite 1
' goto first page
> > Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="1"
> >
> > ' Erste Fusszeile wird geöffnet
' open first header
> > ActiveWindow.ActivePane.View.Type = wdPageView
> > ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageHeader
> >
> > ' Alle Grafiken aus oder eingeblendet
' view/hide all pictures
> > ActiveDocument.Sections(1).Headers
> > (wdHeaderFooterPrimary).Shapes.SelectAll
[quoted text clipped - 34 lines]
> >
> > ' Sprung zur temporären Textmarke, Löschen der Textmarke
' goto temporary bookmark and delete bookmark
> > ActiveDocument.Bookmarks("temp").Select
> > ActiveDocument.Bookmarks("temp").Delete
> >
> > ' Bildschirmaktualisierung einschalten
' activate screen updating
> > Application.ScreenRefresh
> > Application.ScreenUpdating = True
> > Exit Sub
> > ' wenn kein Fehler wird Sub beendet
' terminate sub when no error
> > LogoChange_Exit:
> > Exit Sub
> >
> > ' Fehlerbehandlungsroutine
' error handling
> > LogoChange_Err:
> >
[quoted text clipped - 4 lines]
> > ActiveDocument.Bookmarks("temp").Delete
> >
Delete this part, this is only for documents with protection...
> > If bProtect Then
> > ActiveDocument.protect Password:="", Type:
> > =wdAllowOnlyFormFields, NoReset:=True
> > bProtect = False
> > End If
delete end :-)
> >
> > Application.ScreenRefresh
> > Application.ScreenUpdating = True
MsgBox "No Picture found in Header", vbInformation, TEXT_MSGBOX
> > MsgBox "Das aktuelle Dokument enthält keine Grafiken in der
> > Kopfzeile", vbInformation, TEXT_MSGBOX
[quoted text clipped - 17 lines]
> >>>
> >>> Options.PrintDrawingObjects = False

Signature
Martin Sägesser
martin(at)sibs.ch