Hi All, New member here, so thanks in advance for your help! I am trying to determine the best VBA code to delete duplicate rows of data; the kicker is that this is not a typical multi-column duplicate problem. So just to provide conceptual background, the architecture is set up so that a load may contain many shipments and the report output is structured in similar fashion as below. If the load does NOT have multiple shipments, then I can run VBA code to simply delete duplicate load numbers. BUT if the load DOES contain multiple shipments, then the shipment column indicates a subtotal row by using an * instead of a shipment number. So how do I delete duplicate load numbers but ensure that the code will keep the subtotal row instead of the first row in a set of duplicates?[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Load
[/TD]
[TD]Carrier
[/TD]
[TD]Shipment
[/TD]
[TD]Dollars
[/TD]
[/TR]
[TR]
[TD]12345
[/TD]
[TD]ABC
[/TD]
[TD]5678
[/TD]
[TD]$10
[/TD]
[/TR]
[TR]
[TD]12345
[/TD]
[TD]ABC
[/TD]
[TD]5679
[/TD]
[TD]$15
[/TD]
[/TR]
[TR]
[TD]12345
[/TD]
[TD]ABC
[/TD]
[TD]*
[/TD]
[TD]$25
[/TD]
[/TR]
[TR]
[TD]12366
[/TD]
[TD]BCD
[/TD]
[TD]9636
[/TD]
[TD]$20
[/TD]
[/TR]
[TR]
[TD]12366
[/TD]
[TD]BCD
[/TD]
[TD]9636
[/TD]
[TD]$20
[/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD]Load
[/TD]
[TD]Carrier
[/TD]
[TD]Shipment
[/TD]
[TD]Dollars
[/TD]
[/TR]
[TR]
[TD]12345
[/TD]
[TD]ABC
[/TD]
[TD]5678
[/TD]
[TD]$10
[/TD]
[/TR]
[TR]
[TD]12345
[/TD]
[TD]ABC
[/TD]
[TD]5679
[/TD]
[TD]$15
[/TD]
[/TR]
[TR]
[TD]12345
[/TD]
[TD]ABC
[/TD]
[TD]*
[/TD]
[TD]$25
[/TD]
[/TR]
[TR]
[TD]12366
[/TD]
[TD]BCD
[/TD]
[TD]9636
[/TD]
[TD]$20
[/TD]
[/TR]
[TR]
[TD]12366
[/TD]
[TD]BCD
[/TD]
[TD]9636
[/TD]
[TD]$20
[/TD]
[/TR]
</tbody>[/TABLE]