tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I have a Work Book Called "New Document"
I want to open and copy data into this document from lots of other workbooks?
Basicly I get employees timesheets sent over to me every week, they are all the same and currently the data is being put into my excel document manually,
I want to be able to run a macro that will pull all the time sheet data into my workbook.
So here's what I need,
The workbook will be opened and is called "New Document" the sheet I want the data put into is sheet2 and its from row 2 so Cell A2
the timesheets will all have different names but I don't know what they will be.
The folder I'm need the data pulled from is Called "Times" and is stored on my pc in my documents (if you need me to edit the path no problem, but if it easier to just type it I'm just "User1" C drive all the standard set up.
So all I need is a way to do this:
Open Each file in the folder "Times" copy the following cells "C2:f2, B7, H5, L6, M7 N8:n12,
Then paste this information in that order into the open workbook "New Document" sheet2 Starting from Cell A2, (Now I need it to paste all this data as one long row, and there might be data in Cell A2 so the next available row will need to be found for each one!
So if anyone can help me do this that would be great.
Thanks
Tony
I have a Work Book Called "New Document"
I want to open and copy data into this document from lots of other workbooks?
Basicly I get employees timesheets sent over to me every week, they are all the same and currently the data is being put into my excel document manually,
I want to be able to run a macro that will pull all the time sheet data into my workbook.
So here's what I need,
The workbook will be opened and is called "New Document" the sheet I want the data put into is sheet2 and its from row 2 so Cell A2
the timesheets will all have different names but I don't know what they will be.
The folder I'm need the data pulled from is Called "Times" and is stored on my pc in my documents (if you need me to edit the path no problem, but if it easier to just type it I'm just "User1" C drive all the standard set up.
So all I need is a way to do this:
Open Each file in the folder "Times" copy the following cells "C2:f2, B7, H5, L6, M7 N8:n12,
Then paste this information in that order into the open workbook "New Document" sheet2 Starting from Cell A2, (Now I need it to paste all this data as one long row, and there might be data in Cell A2 so the next available row will need to be found for each one!
So if anyone can help me do this that would be great.
Thanks
Tony