Object defined errror

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Help please

I have the following code, and when I step through it using F8 key it
highlights the third line as an error. Any ideas?????????

Private Sub SelectArguments_Click()
EngIndex = EngineSelect.List(EngineSelect.ListIndex, -1)
Set inputrange = Range("Parameter_List")
Set Inrng = Range(inputrange(1, EngIndex + 1),
inputrange(inputrange.Rows.Count, EngIndex + 1))
For Each Cell In Inrng
If IsEmpty(Cell.Value) Then
Exit For
Else
UserForm1.ListBox2.AddItem (Cell.Value)
End If
Next
UserForm1.Show
End Sub
 
Back
Top