Hi,
I have been searching for the past week, and can't find anything to help me out. I have a report that displays usage data for groups from the previous month and I want to export that data from the workbook that it is stored in to an existing workbook and existing sheets based on the number assigned to that group. I currently a different macro to condense the report from my system down to something that looks like this and is named "Groups":
[TABLE="width: 365"]
<TBODY>[TR]
[TD="align: right"]May-2012</SPAN>[/TD]
[TD]Number</SPAN>[/TD]
[TD]Name</SPAN>[/TD]
[TD]Total Calls</SPAN>[/TD]
[TD]Total Duration</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1536</SPAN>[/TD]
[TD]AAAA</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]00:00:00.00</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1601</SPAN>[/TD]
[TD]BBBB</SPAN>[/TD]
[TD]24,381</SPAN>[/TD]
[TD]17:31:15.65</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1655</SPAN>[/TD]
[TD]CCCC</SPAN>[/TD]
[TD]12</SPAN>[/TD]
[TD]00:00:29.02</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1660</SPAN>[/TD]
[TD]DDDD</SPAN>[/TD]
[TD]52,402</SPAN>[/TD]
[TD]48:07:47.31</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1663</SPAN>[/TD]
[TD]EEEE</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]00:00:00.71</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1695</SPAN>[/TD]
[TD]FFFF</SPAN>[/TD]
[TD]7,325</SPAN>[/TD]
[TD]07:07:21.30</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL><COL></COLGROUP>[/TABLE]
The number of lines on this report can change month by month, but the number in column B will always be between 1536 and 1695. I want to copy the calls and duration in the rows based on column B to an existing Workbook and into existing worksheet's that are named based on column B. The existing Workbook is named "Groups Sorted by Month" (I will add the path later) and contains enough sheets to cover everything between and including 1536 and 1695. These sheets are already named with only the 4 digit number that will appear in column B. In a simple form, I want a macro that can search column B to find the group number and then copy the month, total calls, and total duration to the existing workbook, find the sheet named the same as the number in column B, and then past that information in the next available row; month into column A, total calls into column B, and total duration into column C. I already have header information in all of these sheets, hence wanting it copied into the next available row. My goal is to be able to track group usage month by month to see trends in usage.
Thanks in advance for your help!
I have been searching for the past week, and can't find anything to help me out. I have a report that displays usage data for groups from the previous month and I want to export that data from the workbook that it is stored in to an existing workbook and existing sheets based on the number assigned to that group. I currently a different macro to condense the report from my system down to something that looks like this and is named "Groups":
[TABLE="width: 365"]
<TBODY>[TR]
[TD="align: right"]May-2012</SPAN>[/TD]
[TD]Number</SPAN>[/TD]
[TD]Name</SPAN>[/TD]
[TD]Total Calls</SPAN>[/TD]
[TD]Total Duration</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1536</SPAN>[/TD]
[TD]AAAA</SPAN>[/TD]
[TD]0</SPAN>[/TD]
[TD]00:00:00.00</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1601</SPAN>[/TD]
[TD]BBBB</SPAN>[/TD]
[TD]24,381</SPAN>[/TD]
[TD]17:31:15.65</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1655</SPAN>[/TD]
[TD]CCCC</SPAN>[/TD]
[TD]12</SPAN>[/TD]
[TD]00:00:29.02</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1660</SPAN>[/TD]
[TD]DDDD</SPAN>[/TD]
[TD]52,402</SPAN>[/TD]
[TD]48:07:47.31</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1663</SPAN>[/TD]
[TD]EEEE</SPAN>[/TD]
[TD]1</SPAN>[/TD]
[TD]00:00:00.71</SPAN>[/TD]
[/TR]
[TR]
[TD]Group</SPAN>[/TD]
[TD]1695</SPAN>[/TD]
[TD]FFFF</SPAN>[/TD]
[TD]7,325</SPAN>[/TD]
[TD]07:07:21.30</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL><COL><COL><COL></COLGROUP>[/TABLE]
The number of lines on this report can change month by month, but the number in column B will always be between 1536 and 1695. I want to copy the calls and duration in the rows based on column B to an existing Workbook and into existing worksheet's that are named based on column B. The existing Workbook is named "Groups Sorted by Month" (I will add the path later) and contains enough sheets to cover everything between and including 1536 and 1695. These sheets are already named with only the 4 digit number that will appear in column B. In a simple form, I want a macro that can search column B to find the group number and then copy the month, total calls, and total duration to the existing workbook, find the sheet named the same as the number in column B, and then past that information in the next available row; month into column A, total calls into column B, and total duration into column C. I already have header information in all of these sheets, hence wanting it copied into the next available row. My goal is to be able to track group usage month by month to see trends in usage.
Thanks in advance for your help!