I need to be able to find when information has wrapped in a Word Table Cell – I initially though that I could search for a soft return using LF and attempted using the following code:
Sub Test()
Dim rngCellTest As Range
Set rngCellTest = ActiveDocument.Tables(1).Cell(2, 3).Range
rngCellTest.Find.ClearFormatting
With rngCellTest.Find
.Text = vbLf
.Replacement.Text = “”
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
If rngCellTest.Find.Execute = True Then
MsgBox “true”
Else
MsgBox “false”
End If
End Sub
This doesn’t work. Does anyone have any suggestions?