Please forgive the hand-holding that I'm sure I'm going to need on this question. I have very little experience with visual basic.
Here's what I'm trying to do: I have a large table in Word 2011 (Mac), and I need to find a certain string within the table and delete the row that contains it. Okay, no problem to do that by recording a macro. However, I'd like to have the macro find all instances and delete the rows all at once rather than having to run the macro over and over (besides which, after all the instances have been found, the dumb macro will delete the row where the cursor currently is even if the string isn't in that row!). I'm assuming I need some kind of while... loop, but I don't know how to do a Boolean test on Selection.Find - if that's even what I need to do!
Thanks in advance.
EDIT Code copy-pasted from comment and formatted:
Sub Macro2() ' ' Macro2 Macro ' '
Selection.Find.ClearFormatting
With Selection.Find
.Text = "pull from"
.Replacement.Text = "Pain"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.Rows.Delete
End Sub