Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I currently use the following within a macro:
Range("B7:B100").Select Application.ReplaceFormat.Interior.ColorIndex = 3 Selection.Replace What:="sutherland", Replacement:="Sutherland", LookAt:= _ xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=True I am not sure if this is the best way to accomplish what I need....but it works. It looks for sutherland, finds it, and basicly shades the cell with colorindex=3. Question is....Can I somehow substitute a cell reference in the What:="xxx" area. I would like the macro to search the range for a match to a specific cell and then replace with that cells value and color code the cell. Thanks, Ken |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to Find and Replace | Excel Discussion (Misc queries) | |||
Macro to Find & Replace | Excel Worksheet Functions | |||
Macro: Find and replace | Excel Discussion (Misc queries) | |||
find&replace macro | Excel Worksheet Functions | |||
find and replace cell reference to a new worksheet | Excel Worksheet Functions |