R
rachelle34
I need the following while loop to stop at the end of the document.
have tried both the provious helps but neither work. Please help.
endParameter = True
While (endParameter)
If ((Right(Selection.Text, 10) = "Event Date") Or
(Right(Selection.Text, 10) = "EVENT DATE")) Then
endParameter = False
Else
Selection.MoveRight Unit:=wdWord, Count:=1,
Extend:=wdExtend
End I
have tried both the provious helps but neither work. Please help.
endParameter = True
While (endParameter)
If ((Right(Selection.Text, 10) = "Event Date") Or
(Right(Selection.Text, 10) = "EVENT DATE")) Then
endParameter = False
Else
Selection.MoveRight Unit:=wdWord, Count:=1,
Extend:=wdExtend
End I