Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-14-2019, 03:04 PM
Guessed's Avatar
Guessed Guessed is offline Function in a Macro used to Find & Replace Windows 10 Function in a Macro used to Find & Replace 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
 



Other Forums: Access Forums

All times are GMT -7. The time now is 03:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft