View Single Post
 
Old 02-14-2019, 03:04 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

If you stay with the function, the reason it is failing is that you are only passing in two variables but the function requires three variables.
Code:
Sub DocOps_SPD_Rewrites()
   Call Simple_FindReplace(ActiveDocument, "BEFORE text", "AFTER text")
   Call Simple_FindReplace(ActiveDocument, "BEFORE test", "AFTER test")
   Call Simple_FindReplace(ActiveDocument, "BEFORE tent", "AFTER tent")
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote