Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba importing files various

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA importing files from various worksheets and workbooks into o

VBA importing files from various worksheets and workbooks into o

ResolvedVersion 2010

Zainab has attended:
Excel Intermediate course
Excel Advanced course

VBA importing files from various worksheets and workbooks into o

Hi

How do I import data from various workbooks and worksheets into one worksheet. I need to match the data to specific headings in the destination worksheet. For example:

workbook1 has worksheets June and August data
workbook2 has worksheets July, September and October data
workbook3 has worksheet May

I need to import the above data into one worksheet but in the following order:

May, June, July, August, September and October.

Help!

RE: VBA importing files from various worksheets and workbooks in

Hi Zianab,

Thank you for the forum question.


I have attached 3 workbooks to the answer.

One destination workbook with a destination worksheet and a criteria sheet and two source workbooks. Create a folder and put the two source workbooks in the folder (do not put the destination workbook in the same folder). Run the macro in the destination workbook.

If you look at the macro I have added some explanation.

I hope this will guide you in the right direction.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Attached files...

DecJanMay.xlsx
Destination.xlsm
FebMarchNovember.xlsx

RE: VBA importing files from various worksheets and workbooks in

Thank you very much Jens. I will give it a go.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Copying the same value, label or formula quickly into a range of selected cells.

Select your range of cells. Type the value, label or formula that you want to appear in all the selected cells and then press Ctrl+Enter.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.