I have a userform with checkboxes on it and the following code. I am thinking there has to be an easier way to write this, as I have about 15 of them I have to write. Anyone...?
Thanks
CEG
Code:
If chk1 = True Then
Cells(ActiveCell.Row, "DT").Value = "1"
Else
Cells(ActiveCell.Row, "DT").Value = "0"
End If
If chk2 = True Then
Cells(ActiveCell.Row, "DU").Value = "1"
Else
Cells(ActiveCell.Row, "DU").Value = "0"
End If
If chk3 = True Then
Cells(ActiveCell.Row, "DV").Value = "1"
Else
Cells(ActiveCell.Row, "DV").Value = "0"
End If
ect...
Thanks
CEG