LBTaurus
Mechanical
- Oct 15, 2008
- 11
Hi.. I have a bunch of data in the form of worksheets in a folder. ALL of the worksheets have the same format. The relevant data i need in each is from c6 to c307.
This folder is continuously updated with newer worksheets. Each newer worksheet added into this folder has a number that is higher than those inside the folder, although not necessarily consecutive.
I also have a master file, in which i compile the data from each worksheet.
I need a macro that when i run it, finds the newest worksheet in the folder, adds the data from c6:c307 it to the master file. each time data is added, it has to go to the next open column, and stay consistent in that each first row is the value from c6. ( i need the consistency in rows because i already have an avg macro that should run after the next column is added.)
Is there some way to do this? I've already recorded a couple of macros that do this, but each time its for a specific file and puts the data in the specific place. How do i add the "+1" clause? Should i put an if then statement or two?
I basically need the macro to scan the folder, find the files that aren't already in the master, and take the c6:c307 data from them, and put that data into the next available column.
Let me know if anything doesn't make sense.
Anything at all would help.. I'm fairly new to all of this.
This folder is continuously updated with newer worksheets. Each newer worksheet added into this folder has a number that is higher than those inside the folder, although not necessarily consecutive.
I also have a master file, in which i compile the data from each worksheet.
I need a macro that when i run it, finds the newest worksheet in the folder, adds the data from c6:c307 it to the master file. each time data is added, it has to go to the next open column, and stay consistent in that each first row is the value from c6. ( i need the consistency in rows because i already have an avg macro that should run after the next column is added.)
Is there some way to do this? I've already recorded a couple of macros that do this, but each time its for a specific file and puts the data in the specific place. How do i add the "+1" clause? Should i put an if then statement or two?
I basically need the macro to scan the folder, find the files that aren't already in the master, and take the c6:c307 data from them, and put that data into the next available column.
Let me know if anything doesn't make sense.
Anything at all would help.. I'm fairly new to all of this.