Run-time error '1004': Application-defined or object-defined error
UserForm
1. TextBox1
2. CommandButton
I was upset due to this errors, anyone can help me out
thanks
Dim iRow As Long
Dim WSheet As Worksheet
Set WSheet=Worksheets("Sheet1")
iRow=WSheet.Cells(Rows.Count, 1).End(x1Up).Offset(1,0).Row
If Trim(Me.TextBox1.Value)=""Then
msgbox "Fill!"
Exit Sub
End if
WSheet.Cells(iRow, 1).Value=Me.TextBox1.Value
msgbox"Done!"
Me.TextBox1.Value=""
UserForm
1. TextBox1
2. CommandButton
I was upset due to this errors, anyone can help me out
thanks