B
bmac
I have written some code where my check boxes can be selected exclusive of
each other. Meaning, when the user click on each check box, the others are
deselected. How can I change my code to where if I want to select only
certain one together, but still allow for the check boxes to be selected
separately? For example, Check A and Check B.....Check A or Check B...Is
there any code that woul
d allow for both instances? Any help would be greatly appreciated. Thanks.
bmac
Sub Vacation()
'
' Vacation Macro
'
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub Sick()
'
' Sick Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub MilitaryDuty()
'
' MilitaryDuty Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub JuryDuty()
'
' JuryDuty Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub Bereavement()
'
' Bereavement Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub FloatingHoliday()
'
' FloatingHoliday Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub UnpaidExcuseAbsence()
'
' UnpaidExcuseAbsence Macro
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub FamilyMedicalLeave()
'
' FamilyMedicalLeave Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
End Sub
each other. Meaning, when the user click on each check box, the others are
deselected. How can I change my code to where if I want to select only
certain one together, but still allow for the check boxes to be selected
separately? For example, Check A and Check B.....Check A or Check B...Is
there any code that woul
d allow for both instances? Any help would be greatly appreciated. Thanks.
bmac
Sub Vacation()
'
' Vacation Macro
'
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub Sick()
'
' Sick Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub MilitaryDuty()
'
' MilitaryDuty Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub JuryDuty()
'
' JuryDuty Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub Bereavement()
'
' Bereavement Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub FloatingHoliday()
'
' FloatingHoliday Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub UnpaidExcuseAbsence()
'
' UnpaidExcuseAbsence Macro
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("FamMed_Leave").Result = False
End Sub
Sub FamilyMedicalLeave()
'
' FamilyMedicalLeave Macro
'
ActiveDocument.FormFields("Vac_PaidAb").Result = False
ActiveDocument.FormFields("Sick_PaidAb").Result = False
ActiveDocument.FormFields("Breav_PaidAb").Result = False
ActiveDocument.FormFields("FltHol_PaidAb").Result = False
ActiveDocument.FormFields("MilDty_PaidAb").Result = False
ActiveDocument.FormFields("JryDty_PaidAB").Result = False
ActiveDocument.FormFields("UnpaidEx_Ab").Result = False
End Sub