Find Value In Another Workbook VBA

tlrobinson512

New Member
Joined
Jun 24, 2014
Messages
21
Hello everyone! I am trying to find the right solution and hope my experts can help me!

What I need to do, is to reference the value in cell F3 of wkbk1 ("Metro2") and find the matching value in wkbk2 ("Preview Analysis"). From there I can add in the commands I would like carried out once that cell is found in wkbk 2.

The second piece of my puzzle is to then have this function move down to the next line in wkbk1 (i.e. cell F4) and repeat until all rows have been looped through. So I feel like I have the filling of my pie, but I am in need of the top and bottom crust!

Any thoughts on the best way to approach this? Thank you in advance for any advice.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Marcucciboy2,

Below is what I am hoping to accomplish.

I have written code that will do this function when actually manually entering in the value I wanted using the InputBox method. What I am trying to see is whether there is a way, that I can have my macro look at cell A1 (account 100), and then go to workbook 2 and find that matching value without me having to enter the value? From there I am going to extract a range of cells back to workbook #1 (that part of the code I have). But then I want the same function to repeat for cell A2 on workbook1, all the way down until there is an empty row in workbook 1. So in this case, the macro would stop after account 109 has extracted the necessary information.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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