Hi,
I'm writing a macro for excel in which I need to select the cells based on the text within certain cells. However, the problem is that a proportion of the text is variable and therefore I cannot search for cells using hard-wired code. I hope the following example illustrates the problem.
The cell contains a few constant words "Primary Catchment -" and also variable words which are produced from some reporting software. These words are put in the same cell after the dash. I therefore need to find a way of searching for the cell using the constant words within the cell.
Example 1.
Primary Catchment - Test
Example 2.
Primary Catchment - Test1
I hope this makes sense!!
Nova30
I'm writing a macro for excel in which I need to select the cells based on the text within certain cells. However, the problem is that a proportion of the text is variable and therefore I cannot search for cells using hard-wired code. I hope the following example illustrates the problem.
The cell contains a few constant words "Primary Catchment -" and also variable words which are produced from some reporting software. These words are put in the same cell after the dash. I therefore need to find a way of searching for the cell using the constant words within the cell.
Example 1.
Primary Catchment - Test
Example 2.
Primary Catchment - Test1
I hope this makes sense!!
Nova30