Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Find variable cell text in another range

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Find variable cell text in another range

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Find variable cell text in another range

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find variable unique text within a string Roger Excel Worksheet Functions 5 December 14th 09 04:40 AM
Find Max from Variable Range Dan Excel Worksheet Functions 6 February 22nd 08 11:35 PM
Right Text - Variable Find Karin Excel Discussion (Misc queries) 2 June 7th 07 03:24 PM
find a variable text string [email protected] Excel Discussion (Misc queries) 2 January 30th 07 07:20 PM
VBA code using Find to locate text and display the Cell Range. slimla Excel Programming 6 May 27th 05 09:55 PM


All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"