spill-the-beans
Board Regular
- Joined
- Feb 7, 2013
- Messages
- 52
Hi everyone,
I'm trying to automate my data organisation process, so what I'm looking for is a macro template with the lines of code I need, but for me to change the names of the files. So, what I'm trying to do, is:
1. tell it to look in "workbook 1 name" in "sheet 1 name".
2. copy row 1 and paste only the values to this "workbook 2 name" on "sheet 2 name" in row 1.
3. look back in "workbook 1 name" in "sheet 1 name".
4. copy all the rows that have "this number" in column P, and paste the rows (only the values, not formulas) in the next empty row in "workbook 2 name" on "sheet 2 name"
5. open a text file with "this name".
6. copy the column with "this header" in row 1 and paste the whole column in the next empty column in "workbook 2 name" on "sheet 3 name"
7. save "workbook 2 name" as "this name" (this save will overwrite an existing file, and if it's possible, I don't want excel to ask me if it's okay to save over)
If anyone could help me work this out it would help so much!
I'm trying to automate my data organisation process, so what I'm looking for is a macro template with the lines of code I need, but for me to change the names of the files. So, what I'm trying to do, is:
1. tell it to look in "workbook 1 name" in "sheet 1 name".
2. copy row 1 and paste only the values to this "workbook 2 name" on "sheet 2 name" in row 1.
3. look back in "workbook 1 name" in "sheet 1 name".
4. copy all the rows that have "this number" in column P, and paste the rows (only the values, not formulas) in the next empty row in "workbook 2 name" on "sheet 2 name"
5. open a text file with "this name".
6. copy the column with "this header" in row 1 and paste the whole column in the next empty column in "workbook 2 name" on "sheet 3 name"
7. save "workbook 2 name" as "this name" (this save will overwrite an existing file, and if it's possible, I don't want excel to ask me if it's okay to save over)
If anyone could help me work this out it would help so much!