Linking of multiple excel workbooks using VBA

nandu6630

New Member
Joined
Jul 15, 2017
Messages
1
Would appreciate your immediate help pls.

I have 3 excel files.
First excel has values in cells E2,E3,E4 etc. (For example customer no: say AA12, BB122, etc...)

Second excel has 5-6 sheets, corresponding to work centers, where day to day data & operation details corresponding to all customer are given say PO no, contact details, activities etc. Against, each line of record, there will be a cell which contains a pdf file (hyperlinked)

Say (Sheet 1)
Date PO Cust Contact Activity Activity No
dd-mm-yy 999SSss AA12 djdjd@fhfhf.com Quote open 22224
dd-mm-yy 235223 BB122 doadh@ajk.com Bid 325235
dd-mm-yy 4149134 AA12 jkhk@hkfjaj.com Closure 14414
dd-mm-yy 41486146 AA12,BB122 iosdku@fah.com Purchased 124144

Pls note activity common for 2 customer nos.

Sheets 2-6, will also have similar data.

Now I need a third file, where when I specify the customer no, the macro should open the second file & then start searching for all records matching to that customer no (in 5-6 sheets) and start copying matching records to 3rd excel. It shall sort the values by means of operation no or so (range A5 in all 5-6 sheets)

3rd excel should look like; For AA12

ddmmyy
41486146 AA12 iosdku@fah.com Purchased 124144
ddmmyy 4149134 AA12
jkhk@hkfjaj.com Closure 14414
ddmmyy 999SSss AA12 djdjd@fhfhf.com Quote open 22224

Activity common for 2 customer nos; shall also be reported however with 1 customer detail in 3rd excel.

How do I do this using excel VBA
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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