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

I am looking for a macro that will find and replace text in the formulas
contained within a group of cells (B2:B65).
The text that I want to find is contained in a cell (T3) and the text that I
want to insert is contained in a cell (T4).
Any suggestions of a macro or builtin function that I am unaware of?
Thanks,
Micah
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default find replace

Sub Replace()
Range("B2:B65").Replace What:=Range("T3"), _
Replacement:=Range("T4"), LookAt:=xlwhole
End Sub
--
Charles Chickering

"A good example is twice the value of good advice."


"Micah" wrote:

I am looking for a macro that will find and replace text in the formulas
contained within a group of cells (B2:B65).
The text that I want to find is contained in a cell (T3) and the text that I
want to insert is contained in a cell (T4).
Any suggestions of a macro or builtin function that I am unaware of?
Thanks,
Micah

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default find replace

Thanks for the help. That works like a champ.

Micah

"Charles Chickering" wrote:

Sub Replace()
Range("B2:B65").Replace What:=Range("T3"), _
Replacement:=Range("T4"), LookAt:=xlwhole
End Sub
--
Charles Chickering

"A good example is twice the value of good advice."


"Micah" wrote:

I am looking for a macro that will find and replace text in the formulas
contained within a group of cells (B2:B65).
The text that I want to find is contained in a cell (T3) and the text that I
want to insert is contained in a cell (T4).
Any suggestions of a macro or builtin function that I am unaware of?
Thanks,
Micah

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
Find and Replace - Replace with Blank Space Studebaker Excel Discussion (Misc queries) 4 April 3rd 23 10:55 AM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
Using Find and Replace to replace " in a macro snail30152 Excel Programming 1 April 13th 06 11:58 PM
Replace method - cannot find any data to replace Mike Excel Programming 5 April 6th 06 08:56 PM


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