Run-time Error '1004'

Joined
Dec 6, 2016
Messages
1
Reaction score
0
Run-time error '1004': Application-defined or object-defined error

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top