Hello, i'm trying to figure out a way to delete multiple rows in a large spreadsheet with automation
Example:
<table width="819" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:9984; width:205pt" span="3" width="273"> <tbody><tr style="height:15.0pt" height="20"> <td class="xl72" style="height:15.0pt;width:205pt" width="273" height="20">84076</td> <td class="xl65" style="width:205pt" width="273">Cantor</td> <td class="xl65" style="border-left:none;width:205pt" width="273">10</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;width:205pt" width="273" height="20">Retail</td> <td class="xl68" style="border-left:none;width:205pt" width="273">Tue Nov 08, 2011</td> <td class="xl68" style="border-left:none;width:205pt" width="273">160</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:205pt" width="273" height="20">REVISED</td> <td class="xl69" style="border-left:none;width:205pt" width="273">Division 8</td> <td class="xl68" style="border-left:none;width:205pt" width="273">1600</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl67" style="height:15.0pt;width:205pt" width="273" height="20"> </td> <td class="xl70" style="border-left:none;width:205pt" width="273">Compulsion Done</td> <td class="xl71" style="border-left:none;width:205pt" width="273"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl72" style="height:15.0pt" height="20">84077</td> <td class="xl65" style="border-top:none;width:205pt" width="273">Cantor</td> <td class="xl65" style="border-top:none;border-left:none;width:205pt" width="273">10</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;width:205pt" width="273" height="20">Retail</td> <td class="xl68" style="border-left:none;width:205pt" width="273">Thu Nov 17, 2011</td> <td class="xl68" style="border-left:none;width:205pt" width="273">160</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:205pt" width="273" height="20">CANCELLED</td> <td class="xl69" style="border-left:none;width:205pt" width="273">Division 8</td> <td class="xl68" style="border-left:none;width:205pt" width="273">1600</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl67" style="height:15.0pt;width:205pt" width="273" height="20"> </td> <td class="xl70" style="border-left:none;width:205pt" width="273">Compulsion Done</td> <td class="xl71" style="border-left:none;width:205pt" width="273"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl72" style="height:15.0pt" height="20">84078</td> <td class="xl65" style="border-top:none;width:205pt" width="273">Cantor</td> <td class="xl65" style="border-top:none;border-left:none;width:205pt" width="273">10</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;width:205pt" width="273" height="20">Retail</td> <td class="xl68" style="border-left:none;width:205pt" width="273">Thu Oct 13, 2011</td> <td class="xl68" style="border-left:none;width:205pt" width="273">88</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:205pt" width="273" height="20"> </td> <td class="xl69" style="border-left:none;width:205pt" width="273">Division 8</td> <td class="xl68" style="border-left:none;width:205pt" width="273">880</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl67" style="height:15.0pt;width:205pt" width="273" height="20"> </td> <td class="xl70" style="border-left:none;width:205pt" width="273">Compulsion Done</td> <td class="xl71" style="border-left:none;width:205pt" width="273"> </td> </tr> </tbody></table>
I would need to delete all 4 rows within the "Cancelled" Box, but in a spreadsheet of 12000 boxes of 4. so, probably a macro to find them all, and delete them would be the way to go. Let me know if you can help!
Example:
<table width="819" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:9984; width:205pt" span="3" width="273"> <tbody><tr style="height:15.0pt" height="20"> <td class="xl72" style="height:15.0pt;width:205pt" width="273" height="20">84076</td> <td class="xl65" style="width:205pt" width="273">Cantor</td> <td class="xl65" style="border-left:none;width:205pt" width="273">10</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;width:205pt" width="273" height="20">Retail</td> <td class="xl68" style="border-left:none;width:205pt" width="273">Tue Nov 08, 2011</td> <td class="xl68" style="border-left:none;width:205pt" width="273">160</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:205pt" width="273" height="20">REVISED</td> <td class="xl69" style="border-left:none;width:205pt" width="273">Division 8</td> <td class="xl68" style="border-left:none;width:205pt" width="273">1600</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl67" style="height:15.0pt;width:205pt" width="273" height="20"> </td> <td class="xl70" style="border-left:none;width:205pt" width="273">Compulsion Done</td> <td class="xl71" style="border-left:none;width:205pt" width="273"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl72" style="height:15.0pt" height="20">84077</td> <td class="xl65" style="border-top:none;width:205pt" width="273">Cantor</td> <td class="xl65" style="border-top:none;border-left:none;width:205pt" width="273">10</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;width:205pt" width="273" height="20">Retail</td> <td class="xl68" style="border-left:none;width:205pt" width="273">Thu Nov 17, 2011</td> <td class="xl68" style="border-left:none;width:205pt" width="273">160</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:205pt" width="273" height="20">CANCELLED</td> <td class="xl69" style="border-left:none;width:205pt" width="273">Division 8</td> <td class="xl68" style="border-left:none;width:205pt" width="273">1600</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl67" style="height:15.0pt;width:205pt" width="273" height="20"> </td> <td class="xl70" style="border-left:none;width:205pt" width="273">Compulsion Done</td> <td class="xl71" style="border-left:none;width:205pt" width="273"> </td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl72" style="height:15.0pt" height="20">84078</td> <td class="xl65" style="border-top:none;width:205pt" width="273">Cantor</td> <td class="xl65" style="border-top:none;border-left:none;width:205pt" width="273">10</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl68" style="height:15.0pt;width:205pt" width="273" height="20">Retail</td> <td class="xl68" style="border-left:none;width:205pt" width="273">Thu Oct 13, 2011</td> <td class="xl68" style="border-left:none;width:205pt" width="273">88</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl66" style="height:15.0pt;width:205pt" width="273" height="20"> </td> <td class="xl69" style="border-left:none;width:205pt" width="273">Division 8</td> <td class="xl68" style="border-left:none;width:205pt" width="273">880</td> </tr> <tr style="height:15.0pt" height="20"> <td class="xl67" style="height:15.0pt;width:205pt" width="273" height="20"> </td> <td class="xl70" style="border-left:none;width:205pt" width="273">Compulsion Done</td> <td class="xl71" style="border-left:none;width:205pt" width="273"> </td> </tr> </tbody></table>
I would need to delete all 4 rows within the "Cancelled" Box, but in a spreadsheet of 12000 boxes of 4. so, probably a macro to find them all, and delete them would be the way to go. Let me know if you can help!