jawaharprm
Member
Hi,
Iam unable to add data in user form below mentioned error in one particular code marked in red pls help on same.
>>> use code - tags <<<
Iam unable to add data in user form below mentioned error in one particular code marked in red pls help on same.
>>> use code - tags <<<
Code:
Option Explicit
Private Sub CommandButton1_Click()
Sheet2.Activate
' red line below
Range("a1").End(xlDown).Offset(1, 0).Value = Range("a1").End(xlDown).Value + 1
Range("b1").End(xlDown).Offset(1, 0).Value = TextBox1.Value
Range("c1").End(xlDown).Offset(1, 0).Value = TextBox2.Value
Range("d1").End(xlDown).Offset(1, 0).Value = TextBox3.Value
Range("e1").End(xlDown).Offset(1, 0).Value = ComboBox1.Value
Unload Me
End Sub