P
Petra Liverani
I would like to loop a find text and produce MsgBox but after the code has
run, it switches to the macro window and doesn't run any futher code. I
tried putting in another loop relating to the answer (vbOK) but I couldn't
get a sense of the logic. This is what I've got so far.
Sub FindMsgBox()
With Selection.Find
Do While .Execute(FindText:="assessment task", Wrap:=wdFindStop,
Forward:=True) = True
MsgBox ("Delete any references")
Loop
End With
End Sub
Thanks for any help.
Petra
run, it switches to the macro window and doesn't run any futher code. I
tried putting in another loop relating to the answer (vbOK) but I couldn't
get a sense of the logic. This is what I've got so far.
Sub FindMsgBox()
With Selection.Find
Do While .Execute(FindText:="assessment task", Wrap:=wdFindStop,
Forward:=True) = True
MsgBox ("Delete any references")
Loop
End With
End Sub
Thanks for any help.
Petra