retrobeast
New Member
- Joined
- Jan 17, 2011
- Messages
- 6
Hi
My orginial excel 7 data looks like this.
<TABLE style="WIDTH: 967pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=1288><COLGROUP><COL style="WIDTH: 87pt; mso-width-source: userset; mso-width-alt: 4242" width=116><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 1792" width=49><COL style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 4059" width=111><COL style="WIDTH: 78pt; mso-width-source: userset; mso-width-alt: 3803" width=104><COL style="WIDTH: 192pt; mso-width-source: userset; mso-width-alt: 9362" span=2 width=256><COL style="WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" width=61><COL style="WIDTH: 145pt; mso-width-source: userset; mso-width-alt: 7058" width=193><COL style="WIDTH: 72pt; mso-width-source: userset; mso-width-alt: 3510" width=96><COL style="WIDTH: 35pt; mso-width-source: userset; mso-width-alt: 1682" width=46><TBODY><TR style="HEIGHT: 16.5pt" height=22><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: #557437; WIDTH: 87pt; HEIGHT: 16.5pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl64 height=22 width=116>Name</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 37pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=49>UserID</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 83pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=111>OrderedDate</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 78pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=104>RequestedDate</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 192pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=256>OrderNumber</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 192pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=256>FoodItem</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 46pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=61>Quantity</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 145pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=193>Email</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 72pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=96>Phone</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 35pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: #557437 1.5pt solid" class=xl66 width=46></TD></TR></TBODY></TABLE>
<TABLE style="WIDTH: 967pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=1288><COLGROUP><COL style="WIDTH: 87pt; mso-width-source: userset; mso-width-alt: 4242" width=116><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 1792" width=49><COL style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 4059" width=111><COL style="WIDTH: 78pt; mso-width-source: userset; mso-width-alt: 3803" width=104><COL style="WIDTH: 192pt; mso-width-source: userset; mso-width-alt: 9362" span=2 width=256><COL style="WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" width=61><COL style="WIDTH: 145pt; mso-width-source: userset; mso-width-alt: 7058" width=193><COL style="WIDTH: 72pt; mso-width-source: userset; mso-width-alt: 3510" width=96><COL style="WIDTH: 35pt; mso-width-source: userset; mso-width-alt: 1682" width=46><TBODY><TR style="HEIGHT: 30.75pt" height=41><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 87pt; HEIGHT: 30.75pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 height=41 width=116>Ashish Patel</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 37pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=49 align=right>12</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 83pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl67 width=111 align=right>12/28/2010 0:55</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 78pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl68 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=256>ece6014e-af93-4bca-8ee4-cd999a382547</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=256>Egg White Empanada - 300 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=61 align=right>5</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 145pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=193>ashish@chhatrala.com</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 72pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=96>(619) 379-4378</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 35pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: #557437 1.5pt solid" class=xl69 width=46>cancel</TD></TR><TR style="HEIGHT: 30.75pt" height=41><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: beige; WIDTH: 87pt; HEIGHT: 30.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl70 height=41 width=116>Ashish Patel</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 37pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=49 align=right>12</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl72 width=111 align=right>12/28/2010 0:55</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl73 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=256>ece6014e-af93-4bca-8ee4-cd999a382547</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=256>Egg White Empanada - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=61 align=right>2</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 145pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=193>ashish@chhatrala.com</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 72pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=96>(619) 379-4378</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 35pt; BORDER-TOP: black; BORDER-RIGHT: #557437 1.5pt solid" class=xl74 width=46>cancel</TD></TR><TR style="HEIGHT: 15.75pt" height=21><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 87pt; HEIGHT: 15.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 height=21 width=116>Casey Butler</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 37pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=49 align=right>32</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl67 width=111 align=right>12/30/2010 15:02</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl68 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=256>6a7b5355-8782-4c89-b26c-30573f500779</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=256>Chicken Mozzarella Bake - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=61 align=right>1</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 145pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=193>caseybutler@yahoo.com</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 72pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=96>(781) 983-7073</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 35pt; BORDER-TOP: black; BORDER-RIGHT: #557437 1.5pt solid" class=xl69 width=46>cancel</TD></TR><TR style="HEIGHT: 15.75pt" height=21><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: beige; WIDTH: 87pt; HEIGHT: 15.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl70 height=21 width=116>Casey Butler</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 37pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=49 align=right>32</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl72 width=111 align=right>12/30/2010 15:02</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl73 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=256>6a7b5355-8782-4c89-b26c-30573f500779</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=256>Crispy Sesame Chicken - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=61 align=right>1</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 145pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=193>caseybutler@yahoo.com</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 72pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=96>(781) 983-7073</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 35pt; BORDER-TOP: black; BORDER-RIGHT: #557437 1.5pt solid" class=xl74 width=46>cancel</TD></TR></TBODY></TABLE>
I then run this macro against it.
Option Explicit
Sub Consolidate()
Dim LR As Long, i As Long, MyVal As String
LR = Range("A" & Rows.Count).End(xlUp).Row
Application.ScreenUpdating = False
For i = LR To 2 Step -1
If Cells(i, "A") = Cells(i - 1, "A") Then
If Cells(i, "F") = "" Then
Rows(i).EntireRow.Delete (xlShiftUp)
Else
MyVal = Cells(i, "F").Value
Rows(i).EntireRow.Delete (xlShiftUp)
If Cells(i - 1, "F") = "" Then
Cells(i - 1, "F") = MyVal
Else
Cells(i - 1, "F") = Cells(i - 1, "F").Value & ", " & MyVal
End If
End If
End If
Next i
Columns("F:F").AutoFit
Application.ScreenUpdating = True
[J:J].Delete
[I:I].Delete
[H:H].Delete
[E:E].Delete
[B:B].Delete
End Sub
Which gives me the following results.
<TABLE style="WIDTH: 486pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=648><COLGROUP><COL style="WIDTH: 87pt; mso-width-source: userset; mso-width-alt: 4242" width=116><COL style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 4059" width=111><COL style="WIDTH: 78pt; mso-width-source: userset; mso-width-alt: 3803" width=104><COL style="WIDTH: 192pt; mso-width-source: userset; mso-width-alt: 9362" width=256><COL style="WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" width=61><TBODY><TR style="HEIGHT: 16.5pt" height=22><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: #557437; WIDTH: 87pt; HEIGHT: 16.5pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl68 height=22 width=116>Name</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 83pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl69 width=111>OrderedDate</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 78pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl69 width=104>RequestedDate</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 192pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl69 width=256>FoodItem</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 46pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl69 width=61>Quantity</TD></TR><TR style="HEIGHT: 195.75pt" height=261><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 87pt; HEIGHT: 195.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl70 height=261 width=116>Ashish Patel</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=111 align=right>12/28/2010 0:55</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl67 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 width=256>Tofu Mozzarella Bake - 500 calories, Tasty Beanloaf & Garlic Mash - 500 calories, Stir Fry Rice Noodles with Garlic Basil Tofu - 500 calories, Protein Pizza Vegetable Bean - 500 calories, Black Bean Burger & Sweet Potato Fries - 500 calories, Fresh Egg Tomato Basil Pizza - 500 calories, Fresh Egg White Breakfast Pizza (Italian Style) - 500 calories, Everything Vegetable Soup - 500 calories, Egg White Empanada - 300 calories, Egg White Empanada - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 width=61 align=right>3</TD></TR><TR style="HEIGHT: 90.75pt" height=121><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 87pt; HEIGHT: 90.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl70 height=121 width=116>Casey Butler</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=111 align=right>12/30/2010 15:02</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl67 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 width=256>Chicken Mozzarella Bake - 500 calories, Crispy Sesame Chicken - 500 calories, Rice Noodles W/Basil Garlic Meatballs - 500 calories, Turkey Hummus Burger - 500 calories, Hawaiian Barbeque Burger - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 width=61 align=right>1</TD></TR></TBODY></TABLE>
I need to edit the macro so it does the following
-each item needs to be listed on a separate line in that row.
-the quantity number needs to show up next to each separate item.
-I would like to have the data go to a new sheet instead of wiping out the original data once macro is run against it.
Thank you very much in advance.
Mark
My orginial excel 7 data looks like this.
<TABLE style="WIDTH: 967pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=1288><COLGROUP><COL style="WIDTH: 87pt; mso-width-source: userset; mso-width-alt: 4242" width=116><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 1792" width=49><COL style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 4059" width=111><COL style="WIDTH: 78pt; mso-width-source: userset; mso-width-alt: 3803" width=104><COL style="WIDTH: 192pt; mso-width-source: userset; mso-width-alt: 9362" span=2 width=256><COL style="WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" width=61><COL style="WIDTH: 145pt; mso-width-source: userset; mso-width-alt: 7058" width=193><COL style="WIDTH: 72pt; mso-width-source: userset; mso-width-alt: 3510" width=96><COL style="WIDTH: 35pt; mso-width-source: userset; mso-width-alt: 1682" width=46><TBODY><TR style="HEIGHT: 16.5pt" height=22><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: #557437; WIDTH: 87pt; HEIGHT: 16.5pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl64 height=22 width=116>Name</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 37pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=49>UserID</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 83pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=111>OrderedDate</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 78pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=104>RequestedDate</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 192pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=256>OrderNumber</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 192pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=256>FoodItem</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 46pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=61>Quantity</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 145pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=193>Email</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 72pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 width=96>Phone</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 35pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: #557437 1.5pt solid" class=xl66 width=46></TD></TR></TBODY></TABLE>
<TABLE style="WIDTH: 967pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=1288><COLGROUP><COL style="WIDTH: 87pt; mso-width-source: userset; mso-width-alt: 4242" width=116><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 1792" width=49><COL style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 4059" width=111><COL style="WIDTH: 78pt; mso-width-source: userset; mso-width-alt: 3803" width=104><COL style="WIDTH: 192pt; mso-width-source: userset; mso-width-alt: 9362" span=2 width=256><COL style="WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" width=61><COL style="WIDTH: 145pt; mso-width-source: userset; mso-width-alt: 7058" width=193><COL style="WIDTH: 72pt; mso-width-source: userset; mso-width-alt: 3510" width=96><COL style="WIDTH: 35pt; mso-width-source: userset; mso-width-alt: 1682" width=46><TBODY><TR style="HEIGHT: 30.75pt" height=41><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 87pt; HEIGHT: 30.75pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl65 height=41 width=116>Ashish Patel</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 37pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=49 align=right>12</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 83pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl67 width=111 align=right>12/28/2010 0:55</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 78pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl68 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=256>ece6014e-af93-4bca-8ee4-cd999a382547</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=256>Egg White Empanada - 300 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=61 align=right>5</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 145pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=193>ashish@chhatrala.com</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 72pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: black 1pt solid" class=xl66 width=96>(619) 379-4378</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 35pt; BORDER-TOP: black 1pt solid; BORDER-RIGHT: #557437 1.5pt solid" class=xl69 width=46>cancel</TD></TR><TR style="HEIGHT: 30.75pt" height=41><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: beige; WIDTH: 87pt; HEIGHT: 30.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl70 height=41 width=116>Ashish Patel</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 37pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=49 align=right>12</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl72 width=111 align=right>12/28/2010 0:55</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl73 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=256>ece6014e-af93-4bca-8ee4-cd999a382547</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=256>Egg White Empanada - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=61 align=right>2</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 145pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=193>ashish@chhatrala.com</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 72pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=96>(619) 379-4378</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 35pt; BORDER-TOP: black; BORDER-RIGHT: #557437 1.5pt solid" class=xl74 width=46>cancel</TD></TR><TR style="HEIGHT: 15.75pt" height=21><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 87pt; HEIGHT: 15.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 height=21 width=116>Casey Butler</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 37pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=49 align=right>32</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl67 width=111 align=right>12/30/2010 15:02</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl68 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=256>6a7b5355-8782-4c89-b26c-30573f500779</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=256>Chicken Mozzarella Bake - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=61 align=right>1</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 145pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=193>caseybutler@yahoo.com</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 72pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=96>(781) 983-7073</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 35pt; BORDER-TOP: black; BORDER-RIGHT: #557437 1.5pt solid" class=xl69 width=46>cancel</TD></TR><TR style="HEIGHT: 15.75pt" height=21><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: beige; WIDTH: 87pt; HEIGHT: 15.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl70 height=21 width=116>Casey Butler</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 37pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=49 align=right>32</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl72 width=111 align=right>12/30/2010 15:02</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl73 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=256>6a7b5355-8782-4c89-b26c-30573f500779</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=256>Crispy Sesame Chicken - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=61 align=right>1</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 145pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=193>caseybutler@yahoo.com</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 72pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl71 width=96>(781) 983-7073</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: beige; WIDTH: 35pt; BORDER-TOP: black; BORDER-RIGHT: #557437 1.5pt solid" class=xl74 width=46>cancel</TD></TR></TBODY></TABLE>
I then run this macro against it.
Option Explicit
Sub Consolidate()
Dim LR As Long, i As Long, MyVal As String
LR = Range("A" & Rows.Count).End(xlUp).Row
Application.ScreenUpdating = False
For i = LR To 2 Step -1
If Cells(i, "A") = Cells(i - 1, "A") Then
If Cells(i, "F") = "" Then
Rows(i).EntireRow.Delete (xlShiftUp)
Else
MyVal = Cells(i, "F").Value
Rows(i).EntireRow.Delete (xlShiftUp)
If Cells(i - 1, "F") = "" Then
Cells(i - 1, "F") = MyVal
Else
Cells(i - 1, "F") = Cells(i - 1, "F").Value & ", " & MyVal
End If
End If
End If
Next i
Columns("F:F").AutoFit
Application.ScreenUpdating = True
[J:J].Delete
[I:I].Delete
[H:H].Delete
[E:E].Delete
[B:B].Delete
End Sub
Which gives me the following results.
<TABLE style="WIDTH: 486pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=648><COLGROUP><COL style="WIDTH: 87pt; mso-width-source: userset; mso-width-alt: 4242" width=116><COL style="WIDTH: 83pt; mso-width-source: userset; mso-width-alt: 4059" width=111><COL style="WIDTH: 78pt; mso-width-source: userset; mso-width-alt: 3803" width=104><COL style="WIDTH: 192pt; mso-width-source: userset; mso-width-alt: 9362" width=256><COL style="WIDTH: 46pt; mso-width-source: userset; mso-width-alt: 2230" width=61><TBODY><TR style="HEIGHT: 16.5pt" height=22><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: #557437; WIDTH: 87pt; HEIGHT: 16.5pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl68 height=22 width=116>Name</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 83pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl69 width=111>OrderedDate</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 78pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl69 width=104>RequestedDate</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 192pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl69 width=256>FoodItem</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: #557437; WIDTH: 46pt; BORDER-TOP: #557437 1.5pt solid; BORDER-RIGHT: black 1pt solid" class=xl69 width=61>Quantity</TD></TR><TR style="HEIGHT: 195.75pt" height=261><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 87pt; HEIGHT: 195.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl70 height=261 width=116>Ashish Patel</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=111 align=right>12/28/2010 0:55</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl67 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 width=256>Tofu Mozzarella Bake - 500 calories, Tasty Beanloaf & Garlic Mash - 500 calories, Stir Fry Rice Noodles with Garlic Basil Tofu - 500 calories, Protein Pizza Vegetable Bean - 500 calories, Black Bean Burger & Sweet Potato Fries - 500 calories, Fresh Egg Tomato Basil Pizza - 500 calories, Fresh Egg White Breakfast Pizza (Italian Style) - 500 calories, Everything Vegetable Soup - 500 calories, Egg White Empanada - 300 calories, Egg White Empanada - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 width=61 align=right>3</TD></TR><TR style="HEIGHT: 90.75pt" height=121><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: #557437 1.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 87pt; HEIGHT: 90.75pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl70 height=121 width=116>Casey Butler</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 83pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl66 width=111 align=right>12/30/2010 15:02</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 78pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl67 width=104 align=right>1/3/2011</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 192pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 width=256>Chicken Mozzarella Bake - 500 calories, Crispy Sesame Chicken - 500 calories, Rice Noodles W/Basil Garlic Meatballs - 500 calories, Turkey Hummus Burger - 500 calories, Hawaiian Barbeque Burger - 500 calories</TD><TD style="BORDER-BOTTOM: black 1pt solid; BORDER-LEFT: black; BACKGROUND-COLOR: transparent; WIDTH: 46pt; BORDER-TOP: black; BORDER-RIGHT: black 1pt solid" class=xl65 width=61 align=right>1</TD></TR></TBODY></TABLE>
I need to edit the macro so it does the following
-each item needs to be listed on a separate line in that row.
-the quantity number needs to show up next to each separate item.
-I would like to have the data go to a new sheet instead of wiping out the original data once macro is run against it.
Thank you very much in advance.
Mark