[COLOR=#008000]' *****************************************************************************************************[/COLOR]
[COLOR=#008000]' THIS IS THE GROUP (FIRST GROUP) FOR ENVIRONMENTAL, HEALTH & SAFETY ( "EHS1" )[/COLOR]
Private Sub chkEHS_injury_Click()
Call check_groups(EHS1, chkEHS_injury, chkEHS)
End Sub
Private Sub chkEHS_NM_Click()
Call check_groups(EHS1, chkEHS_NM, chkEHS)
End Sub
Private Sub chkEHS_STF_Click()
Call check_groups(EHS1, chkEHS_STF, chkEHS)
End Sub
Private Sub chkEHS_struck_Click()
Call check_groups(EHS1, chkEHS_struck, chkEHS)
End Sub
Private Sub chkEHS_expose_Click()
Call check_groups(EHS1, chkEHS_expose, chkEHS)
End Sub
Private Sub chkEHS_splash_Click()
Call check_groups(EHS1, chkEHS_splash, chkEHS)
End Sub
Private Sub chkEHS_respir_Click()
Call check_groups(EHS1, chkEHS_respir, chkEHS)
End Sub
Private Sub chkEHS_spill_Click()
Call check_groups(EHS1, chkEHS_spill, chkEHS)
End Sub
Private Sub chkEHS_mobile_Click()
Call check_groups(EHS1, chkEHS_mobile, chkEHS)
End Sub
Private Sub chkEHS_gas_Click()
Call check_groups(EHS1, chkEHS_gas, chkEHS)
End Sub
Private Sub chkEHS_other_Click()
Call check_groups(EHS1, chkEHS_other, chkEHS)
End Sub
[COLOR=#008000]' *****************************************************************************************************[/COLOR]
[COLOR=#008000]' THIS IS THE GROUP (SECOND GROUP) FOR CUSTOMER SERVICE ISSUES ( "CSR2" )[/COLOR]
Private Sub chkCSR_PC_leak_Click()
Call check_groups(CSR2, chkCSR_PC_leak, chkCSR)
End Sub
Private Sub chkCSR_PC_color_Click()
Call check_groups(CSR2, chkCSR_PC_color, chkCSR)
End Sub
Private Sub chkCSR_PC_perform_Click()
Call check_groups(CSR2, chkCSR_PC_perform, chkCSR)
End Sub
Private Sub chkCSR_PC_contam_Click()
Call check_groups(CSR2, chkCSR_PC_contam, chkCSR)
End Sub
Private Sub chkCSR_PC_look_Click()
Call check_groups(CSR2, chkCSR_PC_look, chkCSR)
End Sub
Private Sub chkCSR_LABE_hazLabel_Click()
Call check_groups(CSR2, chkCSR_LABE_hazLabel, chkCSR)
End Sub
Private Sub chkCSR_LABE_xLabel_Click()
Call check_groups(CSR2, chkCSR_LABE_xLabel, chkCSR)
End Sub
Private Sub chkCSR_LABE_mLabel_Click()
Call check_groups(CSR2, chkCSR_LABE_mLabel, chkCSR)
End Sub
Private Sub chkCSR_LABE_pLabel_Click()
Call check_groups(CSR2, chkCSR_LABE_pLabel, chkCSR)
End Sub
Private Sub chkCSR_PACK_lids_Click()
Call check_groups(CSR2, chkCSR_PACK_lids, chkCSR)
End Sub
Private Sub chkCSR_PACK_xPack_Click()
Call check_groups(CSR2, chkCSR_PACK_xPack, chkCSR)
End Sub
Private Sub chkCSR_PACK_fPack_Click()
Call check_groups(CSR2, chkCSR_PACK_fPack, chkCSR)
End Sub
Private Sub chkCSR_PACK_mPack_Click()
Call check_groups(CSR2, chkCSR_PACK_mPack, chkCSR)
End Sub
Private Sub chkCSR_bill_Click()
Call check_groups(CSR2, chkCSR_bill, chkCSR)
End Sub
Private Sub chkCSR_ship_Click()
Call check_groups(CSR2, chkCSR_ship, chkCSR)
End Sub
Private Sub chkCSR_slop_Click()
Call check_groups(CSR2, chkCSR_slop, chkCSR)
End Sub
Private Sub chkCSR_shipper_Click()
Call check_groups(CSR2, chkCSR_shipper, chkCSR)
End Sub
Private Sub chkCSR_other_Click()
Call check_groups(CSR2, chkCSR_other, chkCSR)
End Sub
[COLOR=#008000]' *****************************************************************************************************[/COLOR]
[COLOR=#008000]' THIS IS THE GROUP (THIRD GROUP) FOR SEATEX INTERNAL ISSUES ( "INT3" )[/COLOR]
Private Sub chkSEAI_proF_Click()
Call check_groups(INT3, chkSEAI_proF, chkSEAI)
End Sub
Private Sub chkSEAI_proI_Click()
Call check_groups(INT3, chkSEAI_proI, chkSEAI)
End Sub
Private Sub chkSEAI_contam_Click()
Call check_groups(INT3, chkSEAI_contam, chkSEAI)
End Sub
Private Sub chkSEAI_mech_Click()
Call check_groups(INT3, chkSEAI_mech, chkSEAI)
End Sub
Private Sub chkSEAI_docu_Click()
Call check_groups(INT3, chkSEAI_docu, chkSEAI)
End Sub
Private Sub chkSEAI_pers_Click()
Call check_groups(INT3, chkSEAI_pers, chkSEAI)
End Sub
Private Sub chkSEAI_raw_Click()
Call check_groups(INT3, chkSEAI_raw, chkSEAI)
End Sub
Private Sub chkSEAI_leak_Click()
Call check_groups(INT3, chkSEAI_leak, chkSEAI)
End Sub
Private Sub chkSEAI_work_Click()
Call check_groups(INT3, chkSEAI_work, chkSEAI)
End Sub
Private Sub chkSEAI_other_Click()
Call check_groups(INT3, chkSEAI_other, chkSEAI)
End Sub
[COLOR=#008000]' *****************************************************************************************************[/COLOR]
[COLOR=#008000]' THIS IS THE GROUP (FOURTH GROUP) FOR MISCELLANEOUS INCIDENTS ( "MISC4" )[/COLOR]
Private Sub chkMISC_supplier_Click()
Call check_groups(MISC4, chkMISC_supplier, chkMISC)
End Sub
Private Sub chkMISC_contract_Click()
Call check_groups(MISC4, chkMISC_contract, chkMISC)
End Sub
Private Sub chkMISC_finding_Click()
Call check_groups(MISC4, chkMISC_finding, chkMISC)
End Sub
Private Sub chkMISC_theft_Click()
Call check_groups(MISC4, chkMISC_theft, chkMISC)
End Sub
Private Sub chkMISC_alarm_Click()
Call check_groups(MISC4, chkMISC_alarm, chkMISC)
End Sub
Private Sub chkMISC_rail_Click()
Call check_groups(MISC4, chkMISC_rail, chkMISC)
End Sub
Private Sub chkMISC_rose_Click()
Call check_groups(MISC4, chkMISC_rose, chkMISC)
End Sub
Private Sub chkMISC_elcampo_Click()
Call check_groups(MISC4, chkMISC_elcampo, chkMISC)
End Sub
Private Sub chkMISC_other_Click()
Call check_groups(MISC4, chkMISC_other, chkMISC)
End Sub
[COLOR=#008000]' *****************************************************************************************************[/COLOR]
Sub check_groups(grp, checkb As MSForms.CheckBox, checkG As MSForms.CheckBox)
Dim checks As Variant, i As Long, n As Long
Select Case grp
Case EHS1
checks = Array(chkEHS_injury, chkEHS_NM, chkEHS_STF, chkEHS_struck, chkEHS_expose, _
chkEHS_splash, chkEHS_respir, chkEHS_spill, chkEHS_mobile, chkEHS_gas, chkEHS_other)
Case CSR2
checks = Array(chkCSR_PC_leak, chkCSR_PC_color, chkCSR_PC_perform, chkCSR_PC_contam, _
chkCSR_PC_look, chkCSR_LABE_hazLabel, chkCSR_LABE_xLabel, chkCSR_LABE_mLabel, _
chkCSR_LABE_pLabel, chkCSR_PACK_lids, chkCSR_PACK_xPack, chkCSR_PACK_fPack, _
chkCSR_PACK_mPack, chkCSR_bill, chkCSR_ship, chkCSR_slop, chkCSR_shipper, chkCSR_other)
Case INT3
checks = Array(chkSEAI_proF, chkSEAI_proI, chkSEAI_contam, chkSEAI_mech, _
chkSEAI_docu, chkSEAI_pers, chkSEAI_raw, chkSEAI_leak, chkSEAI_work, chkSEAI_other)
Case MISC4
checks = Array(chkMISC_supplier, chkMISC_contract, chkMISC_finding, chkMISC_theft, _
chkMISC_alarm, chkMISC_rail, chkMISC_rose, chkMISC_elcampo, chkMISC_other)
End Select
For i = 0 To UBound(checks)
If checks(i).Value = True Then
n = n + 1
If n = 3 Then
MsgBox "Please select a maximum of 2 categories"
checkb = False
End If
checkG = True
End If
Next
If n = 0 Then checkG = False
End Sub
[COLOR=#008000]' *****************************************************************************************************[/COLOR]