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

Update: A co-worker showed me how to record macros to try to uncover the mystery. Unfortunately, nothing that was recorded works (even as its own sub procedure). The document DOES start out with everything grouped, as intended.

Recorded macro:
Code:
    'Selecting all with ctrl+A
    Selection.WholeStory
    'Hitting Developer > Controls > Ungroup
    Selection.Range.ParentContentControl.Ungroup
    'Selecting all with ctrl+A
    Selection.WholeStory
    'Developer > Controls > Group
    Selection.Range.ContentControls.Add (wdContentControlGroup)
I get more or less a loop of "Error 91: Object variable not set" and "Expected function or variable" if I try to define a range as the selection.wholestory or .ungroup the range (or selection, which I tried too). I vaguely understand why, I'm just not sure how to approach what to do here.

Still hoping for help~
Reply With Quote