Good morning,
Can anyone see what is wrong with my code? I am using the name identified in the combobox (cmbPS) to identify the row and then change the resulting cells. I keep getting an application defined or object defined error highlighting the row marked
Cells(cmbPS.ListIndex, 66) = "OFF"
The entire code:
If chbMonday.Value = True Then
Cells(cmbPS.ListIndex, 66) = "WORK"
Cells(cmbPS.ListIndex, 67) = Me.cmbStartTime.Value
Cells(cmbPS.ListIndex, 68) = Me.cmb1stBreakTime.Value
Cells(cmbPS.ListIndex, 69) = Me.cmbLunchTime.Value
Cells(cmbPS.ListIndex, 70) = Me.cmb2ndBreakTime.Value
Cells(cmbPS.ListIndex, 71) = Me.cmbEndTime.Value
Else
Cells(cmbPS.ListIndex, 66) = "OFF"
Range("BO7:BS7") = ""
End If
Thanks
M
Bookmarks