Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Replace Return

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)]
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Replace Return

Maybe do a find first to see if the value is in the range to start.



Trent Argante wrote:

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)]


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Replace Return

Good idea, thanks, Dave.
--
Trent Argante
[DC.J(455)]


"Dave Peterson" wrote:

Maybe do a find first to see if the value is in the range to start.



Trent Argante wrote:

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)]


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace hard return with a delimiter? Erin. Excel Worksheet Functions 3 June 25th 09 10:10 PM
Carriage Return By Replace() function FARAZ QURESHI Excel Discussion (Misc queries) 6 February 8th 08 12:40 PM
Replace ; with hard return Stephanie Excel Discussion (Misc queries) 11 April 17th 07 10:11 PM
How do I replace a return value of #N/A in a vlookup with zero? marketingman Excel Worksheet Functions 4 October 28th 05 09:45 PM
how to replace a hard return? go1angel Excel Programming 1 July 22nd 05 07:51 PM


All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"