In Column A if cell 36 has "2015 Stores" then i need a code to identify this cell number.
This can be dynamic and the text can be present in any cell.
Thanks in advance.
In Column A if cell 36 has "2015 Stores" then i need a code to identify this cell number.
This can be dynamic and the text can be present in any cell.
Thanks in advance.
This will do if it's in column A & 2015 Stores is in B1
![]()
Please Login or Register to view this content.
Try something like this...
You may change the FindValue in the red line if you are looking for some other text in col. A. The above code will give you the address of the cell in col. A which contains 2015 Stores in it.![]()
Please Login or Register to view this content.
Moreover if you are interested in knowing the row number, you may change the message box to this...
Does this help?![]()
Please Login or Register to view this content.
Last edited by sktneer; 12-09-2014 at 03:11 AM.
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
It just dawned on me you asked for VBA code. I see sktneer has already given one solution
Here's another. It'll find it anywhere on worksheet 1
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks