Getting weird runtime error from code that should work:
For x = 0 To (UserForm1.ComboBox1.ListCount - 1)
Runtime error is as follows:
For x = 0 To (UserForm1.ComboBox1.ListCount - 1)
If UserForm1.ComboBox1.List(x) = Userform1.ComboBox2 Then UserForm1.ComboBox1.RemoveItem (x): Exit For
Next x
Runtime error is as follows:
Excel run-time error '-2147467259(80004005)'
Unspecified error
Unspecified error