Sub Reg_TimeClock_New()
' This macro is Control+Shift+Y
headarr = Array("GROSS TL", "GROSS SL", "REFUND", "DISCOUNT", "EMP DISC", "MGR DISC", "COIN RDM", "GIFT RDM", "GIFT CRT", " ", "NET SALE", "TAX TOTL", "'==============", "", "", "", "", "", "NO SALE", "DRAWER", "CASH DWR", "", "", "", "CHARGE 1", "", "TAXABLE1", "NON-TXBL", "'--------------", "BRAZIER", "DRINKS", "SOFT SER", "CAKES", "", "", "", "", "", "COUPON", "--------------", "S-GRP TL", "ITEMS TL", "M-GRP TL", "EAT-IN", "TAKE-OUT", "DR-THRU", "", "", "", "AVE DR-T", "OVR DR-T", "VOID TL", "CNCL ORD", "*AVPR", "GRAND TL*", "X1", "X2", "X3", "X4", "X5")
outcol = 14
Cells(2, outcol - 1).Resize(60, 1).Value = WorksheetFunction.Transpose(headarr)
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row Step 61
Cells(1, outcol).Resize(61, 2).Value = Range(Cells(i, 5), Cells(i + 60, 6)).Value
outcol = outcol + 4
Next i
outcol = 13
i = 2
startrow = 1
While Not (IsEmpty(Cells(i, 8)))
If Cells(i, 8) = "ID_CODE" Then
Cells(64, outcol).Resize(i - startrow - 1, 3).Value = Range(Cells(startrow + 1, 8), Cells(i - 1, 10)).Value
startrow = i
outcol = outcol + 4
End If
i = i + 1
Wend
Cells(64, outcol).Resize(i - startrow - 1, 3).Value = Range(Cells(startrow + 1, 8), Cells(i - 1, 10)).Value
outcol = 13
i = 2
startrow = 1
While Not (IsEmpty(Cells(i, 1)))
If Cells(i, 1) = "PLU_CODE" Then
Cells(87, outcol).Resize(i - startrow - 1, 3).Value = Range(Cells(startrow + 1, 1), Cells(i - 1, 3)).Value
' This is pasting PLU's
startrow = i
End If
i = i + 1
If i = 356 Then
Cells(i, 1) = ""
End If
Wend
Cells(87, outcol).Resize(i - startrow - 1, 3).Value = Range(Cells(startrow + 1, 1), Cells(i - 1, 3)).Value
Range("m1", Cells(1, Columns.Count).End(xlToLeft)).ClearContents
Cells(1, 13).Select
End Sub
Thank U
Bookmarks