View Single Post
 
Old 10-15-2018, 08:12 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
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

I simply made some minor changes to your code so that it would eliminate all those bookmarked paragraphs and moved it to the calling macro.

The only bookmarks in the created document are those of the inserted texts. Instead of writing to bookmarks the texts are written consecutively.

The template creates new forms, and are filled with the bookmarked sections. When you click the edit button the form is re-opened with the previous selections checked by reference to the bookmark names. The content is then cleared so that any changes made to the userform are reflected in the edited document. You shouldn't lose anything as it is all re-entered according to what is checked when you click the OK button.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote