VBA - trying to find cell in range

cmefly

Well-known Member
Joined
May 13, 2003
Messages
683
Hi,

I'm trying to find a cell in range("A1:I50") and trying to report back the column numbers

is this possible.....??

thanks,

marc
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

cmefly

Well-known Member
Joined
May 13, 2003
Messages
683
sheet 1 contains the range

sheet 2, cell A1 contains the text that i'm looking for - i'm looking for the entire cell...

does this help?
 

jmthompson

Well-known Member
Joined
Mar 31, 2008
Messages
966
Is it possible that there would be more than one match?

Where do you want the column number published?
 

cmefly

Well-known Member
Joined
May 13, 2003
Messages
683

ADVERTISEMENT

no, not more than one match.

just assign it to a variable...
 

cmefly

Well-known Member
Joined
May 13, 2003
Messages
683
can someone please take a stab at this...? much appreciated.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,943
Messages
5,856,430
Members
431,813
Latest member
seconduser

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top