Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need to choose among different ranges depending on the value of one cell. for example, if the value of cell A1 is "IT", I need to subtitute all "GE" text in a range cells with "IT". Here is what I have, but it works for only one case. I need for 21 different choices in cell A1. Range("D6:E111,H6:I111,L6:M111,M113,L113,I113,H113 ,E113,D113,M224,L224,I224,H224,E224,D224").Select Selection.Replace What:="GE", Replacement:="IT", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Is there any kind of loop for this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Choose dat range for sumif formula | Excel Worksheet Functions | |||
choose a cell in a range which has a text (there is only one) | Excel Discussion (Misc queries) | |||
Choose From A Range | Excel Discussion (Misc queries) | |||
Choose From a Range | Excel Worksheet Functions | |||
How do I choose to only add the first 3 numbers in a range? | Excel Programming |