VBA - Word building up document with buildingblocks with userform
Posted on 2015-02-17
Hi guys, I need some advise,
I'm trying to create a template that can create documents with some flexibility, out from a userform (lots of checkboxes), building blocks.
What I need is that the document to be flexible, so what ever the user checks off in the userform will come out on the document in a specific order, and be able to change the choosen checks if the user by mistake forgot something, so be able to access the userform again.
What i got so far i that i have worked the other way around, i have all the text in the document and from what you check in the userform will stay and everything else will be deleted, this i have made with bookmarks, so in short its simply delete the bookmark and its content if not checked in the userform.
But i need some advise, since if i do it my way i will not be able to add a building block again since the bookmarks is not there anymore, so is there a way to create the document from various checkboxes checked in the userform and it will insert the building blocks in the correct order?