View Single Post
 
Old 10-17-2018, 02:31 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,138
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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.
Attached Files
File Type: dotm Form V3.dotm (121.9 KB, 12 views)
__________________
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.
Reply With Quote