Vivek Roshan
New Member
- Joined
- Feb 15, 2018
- Messages
- 24
Hi,
I have created a user form in sheet1(Data_Entry_Form) and my data in sheet2(ICC_Data). When I run the user form through command button in sheet1. I am getting a message "run time error #424 , object required" and when I debug, it highlighted at userform1.show. When I pressed f8, it is showing the problem in userform1 initializer. The code is given below.
Private Sub UserForm_Initialize()
Dim lrow As Long
lrow = Application.WorksheetFunction.CountA(ICC_Data.Range("A:A")) + 1
Me.ComboBox1.RowSource = "ICC_Data:A2:A" & lrow
End Sub
Any help on the above shall be highly appreciated.
Thanks,
Vivek Roshan
I have created a user form in sheet1(Data_Entry_Form) and my data in sheet2(ICC_Data). When I run the user form through command button in sheet1. I am getting a message "run time error #424 , object required" and when I debug, it highlighted at userform1.show. When I pressed f8, it is showing the problem in userform1 initializer. The code is given below.
Private Sub UserForm_Initialize()
Dim lrow As Long
lrow = Application.WorksheetFunction.CountA(ICC_Data.Range("A:A")) + 1
Me.ComboBox1.RowSource = "ICC_Data:A2:A" & lrow
End Sub
Any help on the above shall be highly appreciated.
Thanks,
Vivek Roshan