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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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