Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am developing a macro that needs to find whatever text is in cell A33 of
sheet1 in a range on sheet2. Cell A33 text changes depending on the selection made from a userform. I have figured out a very, very long winded IF, ELSE IF code that uses all possible values that could be in cell A33 but am hoping there is a simpler way to do it. I have trawled through Excel and Excel VBA help and cant find what I need. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the macro recorder. Copy A33, EditFind, Paste in the Find what box, do
what you want to do with it. Then look at the generated code and change to your needs. -- Kind regards, Niek Otten "AndyRoo" wrote in message ... I am developing a macro that needs to find whatever text is in cell A33 of sheet1 in a range on sheet2. Cell A33 text changes depending on the selection made from a userform. I have figured out a very, very long winded IF, ELSE IF code that uses all possible values that could be in cell A33 but am hoping there is a simpler way to do it. I have trawled through Excel and Excel VBA help and cant find what I need. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That was perfect, thanks.
"Niek Otten" wrote: Use the macro recorder. Copy A33, EditFind, Paste in the Find what box, do what you want to do with it. Then look at the generated code and change to your needs. -- Kind regards, Niek Otten "AndyRoo" wrote in message ... I am developing a macro that needs to find whatever text is in cell A33 of sheet1 in a range on sheet2. Cell A33 text changes depending on the selection made from a userform. I have figured out a very, very long winded IF, ELSE IF code that uses all possible values that could be in cell A33 but am hoping there is a simpler way to do it. I have trawled through Excel and Excel VBA help and cant find what I need. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find variable unique text within a string | Excel Worksheet Functions | |||
Find Max from Variable Range | Excel Worksheet Functions | |||
Right Text - Variable Find | Excel Discussion (Misc queries) | |||
find a variable text string | Excel Discussion (Misc queries) | |||
VBA code using Find to locate text and display the Cell Range. | Excel Programming |