Hi,
i'm a beginner and i need a macro that look for a specific word, then merge that table an go further.
I've created a macro but it doesn't go out of the loop.
I have this Word:
Sub MergeSpecificRowInOneCell()
Selection.WholeStory
Selection.Find.ClearFormatting
Selection.Find.Font.Italic = True
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "Dispensato"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Do While Selection.Find.Execute
If Selection.Information(wdWithInTable) Then
Selection.SelectRow
Selection.Cells.Merge
End If
Loop
End Sub