Excel 2007
Windows XP
Happy Monday!
I would appreciate help in creating a macro to format my report from looking like this:
[TABLE="class: grid, width: 415"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Activity Name[/TD]
[/TR]
[TR]
[TD]Nathan[/TD]
[TD]Manager: Ron[/TD]
[/TR]
[TR]
[TD="align: right"]7/22/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/23/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/24/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gina[/TD]
[TD]Manager: Jewel[/TD]
[/TR]
[TR]
[TD="align: right"]7/23/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1x1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/24/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/25/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Meeting[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/26/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]Morena[/TD]
[TD]Manager: Sean[/TD]
[/TR]
[TR]
[TD="align: right"]7/23/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1x1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/24/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/25/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Meeting[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
</tbody>[/TABLE]
To looking like this:
Rows that are blank, or contain Phone and or Break are being deleted
[TABLE="class: grid, width: 192"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"]Activity Name[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/22/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/22/12[/TD]
[TD="width: 64"]Actvity1[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/22/12[/TD]
[TD="width: 64"]Actvity1[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/22/12[/TD]
[TD="width: 64"]Activity3[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Activity3[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Actvity1[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Activity3[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]1x1[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Activity2[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Activity2[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Meeting[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/26/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/26/12[/TD]
[TD="width: 64"]Activity2[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Activity3[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]1x1[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Meeting[/TD]
[/TR]
</tbody>[/TABLE]
In seaching the forum if found this code
It results in:
[TABLE="class: grid, width: 415"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Activity Name[/TD]
[/TR]
[TR]
[TD]Nathan[/TD]
[TD]Manager: Ron[/TD]
[/TR]
[TR]
[TD="align: right"]7/22/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/23/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Which is almost there except I need another column with the names and deleting rows.
Thank you for reading!
Windows XP
Happy Monday!
I would appreciate help in creating a macro to format my report from looking like this:
[TABLE="class: grid, width: 415"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Activity Name[/TD]
[/TR]
[TR]
[TD]Nathan[/TD]
[TD]Manager: Ron[/TD]
[/TR]
[TR]
[TD="align: right"]7/22/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/23/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/24/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gina[/TD]
[TD]Manager: Jewel[/TD]
[/TR]
[TR]
[TD="align: right"]7/23/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1x1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/24/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/25/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Meeting[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/26/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]Morena[/TD]
[TD]Manager: Sean[/TD]
[/TR]
[TR]
[TD="align: right"]7/23/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]1x1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/24/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/25/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Meeting[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Phone[/TD]
[/TR]
</tbody>[/TABLE]
To looking like this:
Rows that are blank, or contain Phone and or Break are being deleted
[TABLE="class: grid, width: 192"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"]Activity Name[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/22/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/22/12[/TD]
[TD="width: 64"]Actvity1[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/22/12[/TD]
[TD="width: 64"]Actvity1[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/22/12[/TD]
[TD="width: 64"]Activity3[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Activity3[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Actvity1[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Nathan[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Activity3[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]1x1[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Activity2[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Activity2[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Meeting[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/26/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Gina[/TD]
[TD="width: 64, align: right"]7/26/12[/TD]
[TD="width: 64"]Activity2[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Activity3[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/23/12[/TD]
[TD="width: 64"]1x1[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/24/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Lunch[/TD]
[/TR]
[TR]
[TD="width: 64"]Morena[/TD]
[TD="width: 64, align: right"]7/25/12[/TD]
[TD="width: 64"]Meeting[/TD]
[/TR]
</tbody>[/TABLE]
In seaching the forum if found this code
Code:
Option Explicit
Sub FillInAdjuster()
' hiker95, 08/05/2012
' http://www.mrexcel.com/forum/showthread.php?651583-Auto-fill-variable-cells-with-information-from-above
Dim r As Long, lr As Long
Application.ScreenUpdating = False
lr = Cells.Find("*", , xlValues, xlWhole, xlByRows, xlPrevious, False).Row
For r = 2 To lr Step 1
If Cells(r, 1) = "" Then Cells(r, 1).Value = Cells(r - 1, 1).Value
Next r
Application.ScreenUpdating = True
End Sub
It results in:
[TABLE="class: grid, width: 415"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Activity Name[/TD]
[/TR]
[TR]
[TD]Nathan[/TD]
[TD]Manager: Ron[/TD]
[/TR]
[TR]
[TD="align: right"]7/22/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Actvity1[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/22/2012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/23/12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Activity3[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Lunch[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Break[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD]Phone[/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7/23/2012[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Which is almost there except I need another column with the names and deleting rows.
Thank you for reading!