View Single Post
 
Old 03-31-2015, 01:31 PM
canadansk canadansk is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Mar 2015
Posts: 4
canadansk is on a distinguished road
Default

Hi gmaxey. Thanks for the code. Definitely looks like it's going down the path I need to travel, but I get a runtime error 4198 on the following:

Code:
 
Set oCC = ActiveDocument.ContentControls.Add(wdContentControlCheckBox, oRng)
To attempt to fix it myself, one thing I tried was to drop the ", oRng" portion, in which case the script runs through, but just puts all of the checked and unchecked document controls where my cursor happened to be.

There's a lot of Google hits on runtime error 4198 but this one might be useful?
http://support.microsoft.com/en-us/kb/275558
I'm trying to incorporate that into your script, but, as I said, I haven't used VBA in about 10 years, and even then I was barely scratching the surface.
Reply With Quote