Replace Return

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I get the Replace method to return a boolean of whether it has
replaced values or not? It's default return value only seems to indicate
that there are chacters present in the target range or not, but not whether
it made a replacement or not.
Getting frazzeled,
Trent Argante
[DC.J(455)]
 
Maybe do a find first to see if the value is in the range to start.



Trent said:
How do I get the Replace method to return a boolean of whether it has
replaced values or not? It's default return value only seems to indicate
that there are chacters present in the target range or not, but not whether
it made a replacement or not.
Getting frazzeled,
Trent Argante
[DC.J(455)]
 
Good idea, thanks, Dave.
--
Trent Argante
[DC.J(455)]


Dave Peterson said:
Maybe do a find first to see if the value is in the range to start.



Trent said:
How do I get the Replace method to return a boolean of whether it has
replaced values or not? It's default return value only seems to indicate
that there are chacters present in the target range or not, but not whether
it made a replacement or not.
Getting frazzeled,
Trent Argante
[DC.J(455)]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top