Hello, i have a table where i´m going to put some sales.
A is date; B is Produt and C is value.
I´ve created a button for some specified products when when i click then the value apears in the row.
I want to create another button the delete the last inserted row.
Help appreciated.
This is the code of one of the buttons that i sell
A is date; B is Produt and C is value.
I´ve created a button for some specified products when when i click then the value apears in the row.
I want to create another button the delete the last inserted row.
Help appreciated.
This is the code of one of the buttons that i sell
Code:
Sub Button3_Click()
Dim emptycolumn As Long
'Make Sheet1 active
Sheet2.Activate
'Determine emptycolumn
emptycolumn = WorksheetFunction.CountA(Range("a:a")) + 1
'Transfer information
Cells(emptycolumn, 1).Value = Now()
Cells(emptycolumn, 3).Value = "FLAP JACK OAT & CHOC"
Cells(emptycolumn, 4).Value = "2,95€"
Sheet2.Activate
End Sub
Last edited: