these codes paste value at the last available row in column A, but i also want to copy above cell values which are in cell B, C, D columns down last row also?
VBA Code:
P
rivate Sub custnameonlysave_Click()
Dim CustRow As Long
Sheets("lists").Unprotect
Range("C8").MergeArea.ClearContents
If Me.custnameonlytextBox.Value = Empty Then
MsgBox "Please add customer name before saving", vbCritical, "Add Customer Name"
Exit Sub
End If
With Sheet1
If IsEmpty(Sheet2.Range("C8").Value) Then 'New Customer
CustRow = .Cells(.Rows.Count, "A").End(xlUp).Row + 1 'First avail Row
End If
.Cells(CustRow, "A").Value = Me.custnameonlytextBox.Value
.Cells(CustRow, "A").Locked = False
End With
CustNameOnly.Hide
Sheet2.Range("C8").Value = custnameonlytextBox.Value 'Set Customer Name
'Sheets("lists").Protect
End Sub