Gilberto Fernandes
New Member
- Joined
- Jun 16, 2015
- Messages
- 5
Hi everyone, my name is Gil, I have this screen (Userform) with 3 Listbox (The third has been cut) that show me what is being operated on the 3 machines.
I am trying to implement a routine where I click on one of the operation and open a new Userform showing the operations Information in separate TextBoxs to for example update the operation or delete it.
For that I am trying to use the following command to capture the information:
Sub ListBoxM1_Click()
machine.Value = ListBoxM1.List(ListBoxM1.ListIndex, 0)
Pallet.Value = ListBoxM1.List(ListBoxM1.ListIndex, 1)
Dayvalue.Value = ListBoxM1.List(ListBoxM1.ListIndex, 2)
Nightvalue.Value = ListBoxM1.List(ListBoxM1.ListIndex, 3)
Unatvalue.Value = ListBoxM1.List(ListBoxM1.ListIndex, 4)
End Sub
But I am getting the error showing in the pic “Object required”. Could someone help me with that?