K
Kristian
Hi
In word 2000 i search for some text that can be hidden. I use
Set r = ActiveDocument.Range.Duplicate
r.TextRetrievalMode.IncludeHiddenText = True
With r.Find
.Text = "some text"
.Forward = True
End With
r.Find.Execute
If r.Find.Found Then
MsgBox "Found it"
end if
If i use this code it works as excpected. And if i delete "some text" i dont
get any MsgBox. In Word 2003 after i delete the text i still get the message
box. It seems that word 2003 treats deleted text as hidden text.
Is there any good workaround to exlude the deleted text?
In word 2000 i search for some text that can be hidden. I use
Set r = ActiveDocument.Range.Duplicate
r.TextRetrievalMode.IncludeHiddenText = True
With r.Find
.Text = "some text"
.Forward = True
End With
r.Find.Execute
If r.Find.Found Then
MsgBox "Found it"
end if
If i use this code it works as excpected. And if i delete "some text" i dont
get any MsgBox. In Word 2003 after i delete the text i still get the message
box. It seems that word 2003 treats deleted text as hidden text.
Is there any good workaround to exlude the deleted text?