#1   Report Post  
Posted to microsoft.public.excel.misc
Brisbane Rob
 
Posts: n/a
Default Find and replace


Is it possible to run Find and Replace from a macro where it picks up
the 'find' and the 'replace' data from the data in two cells on the
sheet?

Any ideas?

Thanks


--
Brisbane Rob
------------------------------------------------------------------------
Brisbane Rob's Profile: http://www.excelforum.com/member.php...o&userid=25096
View this thread: http://www.excelforum.com/showthread...hreadid=495314

  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default Find and replace

Record a macro while doing it manually.
Then edit the macro.
What:=Range("whatever you wanted to replace") becomes What:=Range("a1")
similar for the value to replace it with

--
Kind regards,

Niek Otten

"Brisbane Rob"
wrote in message
news:Brisbane.Rob.20epay_1135196101.7246@excelforu m-nospam.com...

Is it possible to run Find and Replace from a macro where it picks up
the 'find' and the 'replace' data from the data in two cells on the
sheet?

Any ideas?

Thanks


--
Brisbane Rob
------------------------------------------------------------------------
Brisbane Rob's Profile:
http://www.excelforum.com/member.php...o&userid=25096
View this thread: http://www.excelforum.com/showthread...hreadid=495314



  #3   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett
 
Posts: n/a
Default Find and replace

something like this

Sub findreplace()
Range("e14:e18").Replace What:="x", Replacement:="y", LookAt:=xlWhole
Range("e16:e18").Replace What:=[e14], Replacement:=[e15], LookAt:=xlWhole
End Sub

--
Don Guillett
SalesAid Software

"Brisbane Rob"
wrote in message
news:Brisbane.Rob.20epay_1135196101.7246@excelforu m-nospam.com...

Is it possible to run Find and Replace from a macro where it picks up
the 'find' and the 'replace' data from the data in two cells on the
sheet?

Any ideas?

Thanks


--
Brisbane Rob
------------------------------------------------------------------------
Brisbane Rob's Profile:
http://www.excelforum.com/member.php...o&userid=25096
View this thread: http://www.excelforum.com/showthread...hreadid=495314



  #4   Report Post  
Posted to microsoft.public.excel.misc
Brisbane Rob
 
Posts: n/a
Default Find and replace


Thanks, Neik, your help much appreciated


--
Brisbane Rob
------------------------------------------------------------------------
Brisbane Rob's Profile: http://www.excelforum.com/member.php...o&userid=25096
View this thread: http://www.excelforum.com/showthread...hreadid=495314

  #5   Report Post  
Posted to microsoft.public.excel.misc
Brisbane Rob
 
Posts: n/a
Default Find and replace


Thanks Don!

Much appreciated


--
Brisbane Rob
------------------------------------------------------------------------
Brisbane Rob's Profile: http://www.excelforum.com/member.php...o&userid=25096
View this thread: http://www.excelforum.com/showthread...hreadid=495314

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
How do I find and replace the " mawmawball Excel Discussion (Misc queries) 8 December 22nd 05 01:19 AM
Find and Replace blakrapter Excel Worksheet Functions 3 December 15th 05 12:25 AM
Find and Replace koba Excel Discussion (Misc queries) 1 November 23rd 05 10:19 PM
Find and replace of word causes change of font formatting jwa90010 New Users to Excel 4 July 22nd 05 08:10 PM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM


All times are GMT +1. The time now is 01:01 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"