|
Hi,
Can someone pls tell how I can check if there is a header with the text "hello World" in a Word document "?? I have tried something like this... but its not working. Any help pls
----------------------------------------------------------
Private SubCommandButton1_Click()
With ActiveWindow.ActivePane
If .View.SeekView = wdSeekCurrentPageHeader then
If Selection.TypeText.Text = "Word" Then
MsgBox "True"
Else
MsgBox "False"
End If
End Sub
|
|
|
|
|
|
|
// |