LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 1
Default using replace to get the desired value?

Hello,
I'm using replace in VBA it looks like this:


VB:
Dim result As String
result = Replace(Range("d5"), "X", Range("f2"))
Range("k1") = result

If you like these VB formatting tags please consider sponsoring the author in support of injured Royal Marines
This will look in d5 for X and replace it with f2. If instead of looking for X i want to look for the value in d4, how is it done? if i put range("d4") instead of X it doesn't work.

Thanks
K
 
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
Meeting desired Targets Shweta Srivastava Excel Discussion (Misc queries) 2 April 14th 09 11:38 AM
IRR desired return izbix Excel Worksheet Functions 3 May 3rd 07 06:47 AM
Simplicity is Desired natei6 Excel Worksheet Functions 8 April 11th 06 07:10 AM
Print only desired rows 13 Whistling Pigs Excel Programming 1 June 27th 05 09:07 PM
sum values in a col only if value in next col is desired value u999rbm Excel Programming 3 January 16th 05 04:20 PM


All times are GMT +1. The time now is 08:21 AM.

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

About Us

"It's about Microsoft Excel"