W
whitethomas12
Does anyone know how to find a value within a text string and replace
the entire cell value with a single word
For Example:
Do While Activecell.Offset(0, -1).Value <> ""
IF Activecell.value <> "(IN)" then
Activecell.value = "IN"
ElseIF Activecell.value <> "(OUT)" Then
Activecell.value = "OUT"
ElseIF Activecell.value <> "INNER" Then
Activecell.value = "INNER DOOR"
Else
Activecell.value = ""
End IF
Loop
What I am trying to do is to find the text value of (IN) , (OUT), and
INNER within a text string in cell.
The above example does not work. I know if I write three loops using
the find and replace method it should work, but this is not very
proficient in an excel worksheet that has more that 2000 rows. I need
to find a way to write one loop for this
Thank you for all of your help in advance
the entire cell value with a single word
For Example:
Do While Activecell.Offset(0, -1).Value <> ""
IF Activecell.value <> "(IN)" then
Activecell.value = "IN"
ElseIF Activecell.value <> "(OUT)" Then
Activecell.value = "OUT"
ElseIF Activecell.value <> "INNER" Then
Activecell.value = "INNER DOOR"
Else
Activecell.value = ""
End IF
Loop
What I am trying to do is to find the text value of (IN) , (OUT), and
INNER within a text string in cell.
The above example does not work. I know if I write three loops using
the find and replace method it should work, but this is not very
proficient in an excel worksheet that has more that 2000 rows. I need
to find a way to write one loop for this
Thank you for all of your help in advance