Hi All,
I received a file every day that I currently run a macro to remove any unnecessary rows, then sort the data alphabetically based on the agent name given in column K. The number of rows for each agent will vary each day, and sometimes agents may not have any data at all...
What I am trying to do is once this particular macro has finished, run another macro that will copy all corresponding rows for each agent into a new workbook for each, naming the file using their name and todays date, and save into a newly created folder named today's date...
So to clarify, all rows that have the name "John Smith" in column K to be copied to a new workbook saved as "John Smith 310511" to be saved in a folder called "31.05.11", and so on until all agents have separate files created all saved in folder "31.05.11"
To make it slightly more complicated, I would also like row 1 to be copied to each sheet as it contains all the headings.
Can anyone help? I hope i've explained myself clearly but if you need any clarification then please let me know...
Thanks in advance
I received a file every day that I currently run a macro to remove any unnecessary rows, then sort the data alphabetically based on the agent name given in column K. The number of rows for each agent will vary each day, and sometimes agents may not have any data at all...
What I am trying to do is once this particular macro has finished, run another macro that will copy all corresponding rows for each agent into a new workbook for each, naming the file using their name and todays date, and save into a newly created folder named today's date...
So to clarify, all rows that have the name "John Smith" in column K to be copied to a new workbook saved as "John Smith 310511" to be saved in a folder called "31.05.11", and so on until all agents have separate files created all saved in folder "31.05.11"
To make it slightly more complicated, I would also like row 1 to be copied to each sheet as it contains all the headings.
Can anyone help? I hope i've explained myself clearly but if you need any clarification then please let me know...
Thanks in advance