Hello,
I'm getting an error with this:
Private Sub UserForm_Initialize()
Me.lbxCustomers.List = Sheet1.Range("A2", Cells(Rows.Count, 1).End(xlUp)).Value
End Sub
if sheet1 is active there is no error however if another sheet is active then I get a Method Range of worksheet failed...
what am I missing ?
I'm getting an error with this:
Private Sub UserForm_Initialize()
Me.lbxCustomers.List = Sheet1.Range("A2", Cells(Rows.Count, 1).End(xlUp)).Value
End Sub
if sheet1 is active there is no error however if another sheet is active then I get a Method Range of worksheet failed...
what am I missing ?