Hi
I am a beginner with vba and I am stuck in trying to import another excel workbook with its location being flexible as the file-name will change.
I have a dialog bix opening up to select the file. I am trying to import data from one workbook sheet into my master file sheet. I will manipulate the data once in myself through another macro. But as the workbook i am importing is not consistent naming convention or location but will have the same format data in the sheet I want to be able to select the file but the data format in the workbook i am importing from will not change.
What i am struggling with is the code to import the data from that file. I have imported text files already and this is working but the code does not work for excel files.
Workbook1 is the data source file i want to import from and Workbook2 is the master file i will be using.
Workbook1 sheet name: "REPORT"
Workbook2 sheet name master file: "Forecast"
It is just the one sheet in the Workbook1 i want to import from and its the only sheet in the Workbook1 and it is all the data as it is in Workbook1 Sheet not any specific range. I will manipulate once i have it in Workbook2.
This is what i got so far
Please Login or Register to view this content.
Having difficulty in building the next block of code for the import into my Workbook2.
I am using excel 2010.
Any help would be most appreciated.
Thanks.
Bookmarks