Hi All,

I have a code to insert sometext to before the para.

The Code works in Microsoft Word 2003 for Windows, But it not works in Microsoft Word 2004 for Mac "Version 11.3.5"

It shows the error message as:

Run Time Error 5990
The find what text contains a range that is not valid.

Can any Technicians help me.

Below is the code for you ref:

Sub Minor_Subtotal_Minor()
ActiveDocument.Content.Find.Execute _
FindText:="([!^13]@%^13)([0-9,]@^13)([!^13]@%^13)", _
MatchWildcards:=True, _
ReplaceWith:="Tip1:\1Tip2:\2Tip3:\3", _

End Sub