This macro copies transaction data from the "KASIR" sheet to the "Daftar Transaksi" sheet. It selects the appropriate ranges to copy based on whether there is one or multiple transaction items. It then pastes the data into the first empty row of the "Daftar Transaksi" sheet. Finally, it clears the transaction data and table on the "KASIR" sheet to prepare it for the next transaction.
This macro copies transaction data from the "KASIR" sheet to the "Daftar Transaksi" sheet. It selects the appropriate ranges to copy based on whether there is one or multiple transaction items. It then pastes the data into the first empty row of the "Daftar Transaksi" sheet. Finally, it clears the transaction data and table on the "KASIR" sheet to prepare it for the next transaction.
This macro copies transaction data from the "KASIR" sheet to the "Daftar Transaksi" sheet. It selects the appropriate ranges to copy based on whether there is one or multiple transaction items. It then pastes the data into the first empty row of the "Daftar Transaksi" sheet. Finally, it clears the transaction data and table on the "KASIR" sheet to prepare it for the next transaction.
Sheets("KASIR").Select Range("C7").Offset(1, 0).Select If Range("K13") = 1 Then 'Total item Range(Selection, Selection.End(xlToRight)).Select Else Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select End If Selection.Copy
'Pilih sheet yg akan diPaste, yt Sheet "Daftar Transaksi"
Sheets("Daftar Transaksi").Select If Range("C3").Offset(1, 0).Value = "" Then Range("C3").Offset(1, 0).Select Else Range("C3").End(xlDown).Offset(1, 0).Select End If ActiveSheet.Paste