noHandlebars
Technical User
I'm getting an *Object Required* error for the following code:
Dim cOne, cTwo, cThree, cFour, cFiveA, cFiveB, cSix, cSeven, cEight, cNine As Boolean
Set cOne = ActiveDocument.FormFields("ccheck1").CheckBox
Set cTwo = ActiveDocument.FormFields("ccheck2").CheckBox
Set cThree = ActiveDocument.FormFields("ccheck3").CheckBox
Set cFour = ActiveDocument.FormFields("ccheck4").CheckBox
Set cFiveA = ActiveDocument.FormFields("ccheck5").CheckBox
Set cFiveB = ActiveDocument.FormFields("ccheck6").CheckBox
Set cSix = ActiveDocument.FormFields("ccheck7").CheckBox
Set cSeven = ActiveDocument.FormFields("ccheck8").CheckBox
Set cEight = ActiveDocument.FormFields("ccheck9").CheckBox
Set cNine = ActiveDocument.FormFields("ccheck10").CheckBox
'this last variable "cNine" is where i get the error
I'm not sure what's wrong because the all the other variables work and they are all the same format. Any suggestions?
Dim cOne, cTwo, cThree, cFour, cFiveA, cFiveB, cSix, cSeven, cEight, cNine As Boolean
Set cOne = ActiveDocument.FormFields("ccheck1").CheckBox
Set cTwo = ActiveDocument.FormFields("ccheck2").CheckBox
Set cThree = ActiveDocument.FormFields("ccheck3").CheckBox
Set cFour = ActiveDocument.FormFields("ccheck4").CheckBox
Set cFiveA = ActiveDocument.FormFields("ccheck5").CheckBox
Set cFiveB = ActiveDocument.FormFields("ccheck6").CheckBox
Set cSix = ActiveDocument.FormFields("ccheck7").CheckBox
Set cSeven = ActiveDocument.FormFields("ccheck8").CheckBox
Set cEight = ActiveDocument.FormFields("ccheck9").CheckBox
Set cNine = ActiveDocument.FormFields("ccheck10").CheckBox
'this last variable "cNine" is where i get the error
I'm not sure what's wrong because the all the other variables work and they are all the same format. Any suggestions?