jamesbrown008
New Member
- Joined
- Apr 22, 2011
- Messages
- 27
Hi All
I am 100% new here so sorry to dive right in with a huge request.
I have been reading through a ton of forums and although I see a lot of code that is close to what I am looking for I haven't yet found one to that I can modify to fit my needs.
OK so here is the story
I administer an ecommerce system and produce two daily reports
I already have macro which I run daily to combines copy one worksheet from each of the daily reports into one master file. (I can share if anyone is interested)
This leaves me with a file that has numberous tabs for Online conversions and Agents conversions.
The macro I use to create the master file also appends a date to the end of each tab.
e.g.
Agent Conversions 4-1-11
Agent Conversions 4-2-11
Agent Conversions 4-3-11
Online Conversions 4-1-11
Online Conversions 4-2-11
Online Conversions 4-3-11
On every tab there is a list of agent names that varies in length from tab to tab.
The first thing I want to do is have a macro that accesses every tab and then strips some obselete rows from the bottom - I never know which line these rows will start on but I do know that I want to delete every row after and including the row where the word "Total" appears in the column
e.g. if the word Total appear in cell A22 - everything after A22 will be deleted)
The next macro I need (appologies for the complexity of this request) will be run each day to open each tab and copy evrything from from row 8 downwards into the summary tab. The code will ideally keep track of which tabs have been processed so that each tab is only processed once in a month or simply run for every tab and overwrite the summary tab from scratch each time it is run.
The only other catch it this: When the rows are copied over I need to populate a field in each row with the the name of the tab that it came from.
If I am dreaming here and this is too large a request to burden you fine people with I fully understand but thanks for reading anyway.
James
I am 100% new here so sorry to dive right in with a huge request.
I have been reading through a ton of forums and although I see a lot of code that is close to what I am looking for I haven't yet found one to that I can modify to fit my needs.
OK so here is the story
I administer an ecommerce system and produce two daily reports
- Customer entered sales by Agent (Online Conversions)
- Agent enterd sales by agent (Agent Conversions)
I already have macro which I run daily to combines copy one worksheet from each of the daily reports into one master file. (I can share if anyone is interested)
This leaves me with a file that has numberous tabs for Online conversions and Agents conversions.
The macro I use to create the master file also appends a date to the end of each tab.
e.g.
Agent Conversions 4-1-11
Agent Conversions 4-2-11
Agent Conversions 4-3-11
Online Conversions 4-1-11
Online Conversions 4-2-11
Online Conversions 4-3-11
On every tab there is a list of agent names that varies in length from tab to tab.
The first thing I want to do is have a macro that accesses every tab and then strips some obselete rows from the bottom - I never know which line these rows will start on but I do know that I want to delete every row after and including the row where the word "Total" appears in the column
e.g. if the word Total appear in cell A22 - everything after A22 will be deleted)
The next macro I need (appologies for the complexity of this request) will be run each day to open each tab and copy evrything from from row 8 downwards into the summary tab. The code will ideally keep track of which tabs have been processed so that each tab is only processed once in a month or simply run for every tab and overwrite the summary tab from scratch each time it is run.
The only other catch it this: When the rows are copied over I need to populate a field in each row with the the name of the tab that it came from.
If I am dreaming here and this is too large a request to burden you fine people with I fully understand but thanks for reading anyway.
James