spinbutton fails every second time?!

fottet06

New Member
Joined
Jan 6, 2014
Messages
2
I am currently making a userform but have now for long time received a strange bug. My userform has a listbox with items and 4 assigned spinbuttons which are machines. Items can only be processed on 1 or 2 machines, and they vary. So I want the spinbuttons to be disabled for those machines that cannot handle an item. But when I perform my userform every second it gets a value to the cells, and every second time the cells are blank. I really dont get it why it Works half of the time?!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Private Sub lstItem_Change() If lstItem.Value = "Tiny VVA" Then
optM1.Enabled = False
optM2.Enabled = False
optM3.Enabled = False
optM4.Enabled = True
End If End subRange("B" & r).Value = lstItem.Value
If optM1 = True Then
Range("C" & r).Value = lstTotalTime.Value
End If
If optM2 = True Then
Range("D" & r).Value = lstTotalTime.Value
End If
If optM3 = True Then
Range("E" & r).Value = lstTotalTime.Value
End If
If optM4 = True Then
Range("F" & r).Value = lstTotalTime.Value
End If
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top