![]() |
#1
|
|||
|
|||
![]()
HI I have 49ish content controls embedded in multiple tables. I have to reference all content controls in all three tables for a 4th "scoring" table. The content controls are the full gambit, text, checkboxes, dropdown, list, nested if statements etc. I've tried the following code but it fails and I'm thinking its because its referencing only rich text content although for the life of me I can't see where this is being referenced. Thinking ...controls.item(i) would capture all content controls. Runtime error 4605 method or property is not available as the current selection partially covers a plain text content control. Help is appreciated.
Sub AddBookmarksAtCC() Dim ccobjA As ContentControl, i As Integer For i = 1 To ActiveDocument.ContentControls.Count Set ccobjA = ActiveDocument.ContentControls.Item(i) Debug.Print ccobjA.Title ActiveDocument.Bookmarks.Add ccobjA.Title, ActiveDocument.ContentControls.Item(i).Range Next i End Sub |
Tags |
bookmark;content control |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA for content controls | ciresuark | Word VBA | 1 | 03-10-2015 03:14 PM |
Calculate Age From Content Controls | kintap | Word VBA | 10 | 07-02-2014 09:25 AM |
Content Controls in Headers | ejungk99 | Word | 2 | 06-16-2014 04:02 PM |
![]() |
Sammie0Sue | Word | 6 | 11-06-2013 10:56 PM |
![]() |
cksm4 | Word VBA | 2 | 03-01-2011 12:46 PM |