Data Transfer between workbooks based on cell

Data_Analyst

New Member
Joined
Jun 21, 2011
Messages
12
Hello,

I need some VBA help to accomplish the following -

I have 3 files.

workbook 1: has the vba residing in it
workbook 2: has the data
workbook 3: where I would like to put the data (one of each account below)

(workbook 2) data document has a bunch of accounts and corresponding info in column B, for example:

Column A

101010
111111
222222
334234

Column B

1
2
3
4


I would like the program to run through this list, so when it hits 101010,
it opens up the 3rd workbook (workbooks.open) which has that account number for the file name - "101010.xls" enters the information from column B which is associated with that account (for 101010, it would be 1), saves it and closes it, goes down the list in workbook 2 and continues until it reaches the end.

Thank you for your help with this matter. I greatly appreciate it.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If anyone here has an alternative method than the one posted on the other forum, I would appreciate it.

Thank you all for your efforts!
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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