Task:
4 checkboxes. The checking/unchecking of each box needs to update the values of the other three.
Problem:
the code for each checkbox that changes the value of the other three is firing the onClick event for the other three checkboxes.
EnableEvents=False is not recognised in word, only excel.
Have tried also using checkbox form fields instead of MS Forms Checkbox Control but this presents other problems as the macro event on a formfield checkbox will fire only on enter or exit. If the user checks it the form will fire once with the OnEnter but unless they move to another field before changing that value the macro wont fire again.
Checkbox controls can provide an immediate result, but unless I can programmatically disable the click events there is a serious amount of vicious circling going on.
any assistance greatly appreciated.
Cheers
4 checkboxes. The checking/unchecking of each box needs to update the values of the other three.
Problem:
the code for each checkbox that changes the value of the other three is firing the onClick event for the other three checkboxes.
EnableEvents=False is not recognised in word, only excel.
Have tried also using checkbox form fields instead of MS Forms Checkbox Control but this presents other problems as the macro event on a formfield checkbox will fire only on enter or exit. If the user checks it the form will fire once with the OnEnter but unless they move to another field before changing that value the macro wont fire again.
Checkbox controls can provide an immediate result, but unless I can programmatically disable the click events there is a serious amount of vicious circling going on.
Code:
Private Sub chk01_click()
With ThisDocument
.chk01.Value = True: .chk02.Value = False: .chk03.Value = False: .chk04.Value = False
End With
End Sub
Private Sub chk02_click()
With ThisDocument
.chk01.Value = False: .chk02.Value = True: .chk03.Value = True: .chk04.Value = False
End With
End Sub
Private Sub chk03_click()
With ThisDocument
.chk01.Value = False: .chk02.Value = True: .chk03.Value = True: .chk04.Value = False
End With
End Sub
Private Sub chk04_click()
With ThisDocument
.chk01.Value = False: .chk02.Value = True: .chk03.Value = False: .chk04.Value = True
End With
End Sub
any assistance greatly appreciated.
Cheers