MrHanky
11-14-2008, 07:27 AM
PLEASE IGNORE, I have now figured out a different way.
Hello,
Im just wondering if someone could shed some light on my poor coding below? I am trying to cycle through the checkboxes and evaluate them one by one. The use of the msgbox below is just there to see if it worked, and once it is working I will substitute that part of the code for something whch then goes and references Excel (That part is ok at the minute).
Could someone point out what I have done wrong here? This is one part of the puzzle and I have tried it a few different ways so far, with no success.
Public Function Role_Check()
For Each ffield In ActiveDocument.FormFields
fName = ffield.Name
If ffield(fName).CheckBox.Value = True Then
MsgBox "Checkbox x is checked", vbOKOnly
Else
MsgBox "Checkbox x is not checked", vbOKOnly
End If
Next
End Function
Thanks for any help
Mark
Hello,
Im just wondering if someone could shed some light on my poor coding below? I am trying to cycle through the checkboxes and evaluate them one by one. The use of the msgbox below is just there to see if it worked, and once it is working I will substitute that part of the code for something whch then goes and references Excel (That part is ok at the minute).
Could someone point out what I have done wrong here? This is one part of the puzzle and I have tried it a few different ways so far, with no success.
Public Function Role_Check()
For Each ffield In ActiveDocument.FormFields
fName = ffield.Name
If ffield(fName).CheckBox.Value = True Then
MsgBox "Checkbox x is checked", vbOKOnly
Else
MsgBox "Checkbox x is not checked", vbOKOnly
End If
Next
End Function
Thanks for any help
Mark