P
Patrick Simonds
I have all of these Ranges to set:
Set INSN1Range = ActiveDocument.BookMarks("Insurance1Address").Range
Set INSN2Range = ActiveDocument.BookMarks("Insurance2Address").Range
Set EffecDate1Range = ActiveDocument.BookMarks("Insurance1Effective").Range
Set EffecDate2Range = ActiveDocument.BookMarks("Insurance2Effective").Range
Set INSID1Range = ActiveDocument.BookMarks("Insurance1ID").Range
Set INSID2Range = ActiveDocument.BookMarks("Insurance2ID").Range
Set INSYesRange = ActiveDocument.BookMarks("InsuranceYes").Range
Set INSNoRange = ActiveDocument.BookMarks("InsuranceNo").Range
Set INSEmployerRange = ActiveDocument.BookMarks("InsuranceEmployment").Range
And I need to set them for each of 10 OptionButtons. I was hoping to save
the time and space of replicating this for each of the 10 OptionButtons so I
created a module:
Public Sub SetBookMarkRange()
Set INSN1Range = ActiveDocument.BookMarks("Insurance1Address").Range
Set INSN2Range = ActiveDocument.BookMarks("Insurance2Address").Range
Set EffecDate1Range = ActiveDocument.BookMarks("Insurance1Effective").Range
Set EffecDate2Range = ActiveDocument.BookMarks("Insurance2Effective").Range
Set INSID1Range = ActiveDocument.BookMarks("Insurance1ID").Range
Set INSID2Range = ActiveDocument.BookMarks("Insurance2ID").Range
Set INSYesRange = ActiveDocument.BookMarks("InsuranceYes").Range
Set INSNoRange = ActiveDocument.BookMarks("InsuranceNo").Range
Set INSEmployerRange = ActiveDocument.BookMarks("InsuranceEmployment").Range
End Sub
I then placed the line BookMarks.SetBookMarkRange at the beginning of each
of the OptionButtons click routines, but I get an error which in effect says
that the range is not set. Any ideas?
Set INSN1Range = ActiveDocument.BookMarks("Insurance1Address").Range
Set INSN2Range = ActiveDocument.BookMarks("Insurance2Address").Range
Set EffecDate1Range = ActiveDocument.BookMarks("Insurance1Effective").Range
Set EffecDate2Range = ActiveDocument.BookMarks("Insurance2Effective").Range
Set INSID1Range = ActiveDocument.BookMarks("Insurance1ID").Range
Set INSID2Range = ActiveDocument.BookMarks("Insurance2ID").Range
Set INSYesRange = ActiveDocument.BookMarks("InsuranceYes").Range
Set INSNoRange = ActiveDocument.BookMarks("InsuranceNo").Range
Set INSEmployerRange = ActiveDocument.BookMarks("InsuranceEmployment").Range
And I need to set them for each of 10 OptionButtons. I was hoping to save
the time and space of replicating this for each of the 10 OptionButtons so I
created a module:
Public Sub SetBookMarkRange()
Set INSN1Range = ActiveDocument.BookMarks("Insurance1Address").Range
Set INSN2Range = ActiveDocument.BookMarks("Insurance2Address").Range
Set EffecDate1Range = ActiveDocument.BookMarks("Insurance1Effective").Range
Set EffecDate2Range = ActiveDocument.BookMarks("Insurance2Effective").Range
Set INSID1Range = ActiveDocument.BookMarks("Insurance1ID").Range
Set INSID2Range = ActiveDocument.BookMarks("Insurance2ID").Range
Set INSYesRange = ActiveDocument.BookMarks("InsuranceYes").Range
Set INSNoRange = ActiveDocument.BookMarks("InsuranceNo").Range
Set INSEmployerRange = ActiveDocument.BookMarks("InsuranceEmployment").Range
End Sub
I then placed the line BookMarks.SetBookMarkRange at the beginning of each
of the OptionButtons click routines, but I get an error which in effect says
that the range is not set. Any ideas?