View Single Post
 
Old 03-14-2018, 10:04 AM
madempress madempress is offline Windows 10 Office 2016
Novice
 
Join Date: Mar 2018
Posts: 5
madempress is on a distinguished road
Default

Attached is the form. I did make some headway (and found a bug in my initial form, w00!). The form should start out fully grouped. The only time new content is programmatically altered is when "Purpose for Release" is "End of Life".

The form now ungroups during contentcontrolonexit the way I want it to, using:
Code:
    For Each cc In ActiveDocument.ContentControls
        If cc.Type = wdContentControlGroup Then
            cc.Ungroup
        End If
    Next cc
I have no idea how to go about re-grouping the document using this, since this doesn't use the selection.wholestory successfully, which is how I would theoretically target a .ContentControls.Add (wdContentControlGroup). But it is half my solution. After all, if the document can be ungrouped programatically, it can be grouped!
Attached Files
File Type: dotm TrackingForm_DRAFT.dotm (44.4 KB, 11 views)
Reply With Quote