K
Kim
I started this macro, but I don't know how to make it loop within the
selection. (I use this macro to highlight a paragraph or table, and
search for all spelled out dates and convert the find to mm/dd/yyyy
number format). I want the macro to continue within my selection. Is
this possible?
Selection.Find.ClearFormatting
With Selection.Find
.text = "(<[ADFJMNOS]*>) ([0-9]{1,2}), ([0-9]{4})"
.MatchWildcards = True
End With
Selection.Find.Execute
If IsDate(Selection.Range) Then
Selection.Range = Format(Selection.Range, "mm/dd/YYYY")
End If
End Sub
Thanks,
Kim
selection. (I use this macro to highlight a paragraph or table, and
search for all spelled out dates and convert the find to mm/dd/yyyy
number format). I want the macro to continue within my selection. Is
this possible?
Selection.Find.ClearFormatting
With Selection.Find
.text = "(<[ADFJMNOS]*>) ([0-9]{1,2}), ([0-9]{4})"
.MatchWildcards = True
End With
Selection.Find.Execute
If IsDate(Selection.Range) Then
Selection.Range = Format(Selection.Range, "mm/dd/YYYY")
End If
End Sub
Thanks,
Kim