This problem got the better of my curiosity and on simplifying the code to avoid all those interminable sections relating to check boxes and bookmarks, it seems that recording the data from content controls in the bookmarked sections (provided the content controls are uniquely named) is fairly simple using a collection to hold the names and values.
Thus you can recall the userform to add a section and retain the inserted content control values. It won't of course restore ad hoc text. If you want to edit the bookmarked texts you'll need to add the content controls to hold the edits to the data document.
There are tools available from my web site to insert content controls easily and to ensure they are uniquely named.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Last edited by gmayor; 10-17-2018 at 05:03 AM.
|