G
Guest
Does anyone know if there is a Word macro command to find out how many lines
are in a document's header?
I have tried the following:
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.EndKey Unit:=wdStory
LineNum = Selection.Information(wdFirstCharacterLineNumber)
but it just returns a value of -1. In fact it returns a value of -1 for any
line in the header. It apparently only works in the main document text area.
Many thanks.
are in a document's header?
I have tried the following:
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.EndKey Unit:=wdStory
LineNum = Selection.Information(wdFirstCharacterLineNumber)
but it just returns a value of -1. In fact it returns a value of -1 for any
line in the header. It apparently only works in the main document text area.
Many thanks.