Hopefully a simple question

roughleg

Board Regular
Joined
Jun 21, 2004
Messages
181
How do I find the value in let's say, Sheets("Sheet1"). Range("B2"), activate Sheet2 and select the cell containing that value to continue with my macro?
I'm actually combining two macros that work fine, but I need to find and select the corresponding part number in sheet2.
Skip
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Skip

Something like
Code:
Sub bbb()
 Sheets("sheet2").Select
 ActiveSheet.Cells.Find(what:=Sheets("sheet1").Range("B2")).Select
End Sub

This doesn't take into account multiple entries, or missing entries etc.


Tony
 
Upvote 0

Forum statistics

Threads
1,203,069
Messages
6,053,352
Members
444,655
Latest member
didr

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
Back
Top