Forum Discussion
templatebuilding
This is exactly what I am after. Where do I insert this line of code? and where do I change the value to correspond with the item in the combobox content control?
/Magnus
Magnus_Edstrm You should create a macro enabled template (*.dotm) and in the Visual Basic Editor, access the ThisDocument object and paste the code into the Window on the right
The code has been written on the basis that the items in the combobox are identical to the bookmarks in the template so that it is not necessary to refer either to the actual items in the list or to the actual bookmark names and also so that the code will cater for any number of items in the list\bookmarks in the document.
Start by using your examples of A, B, and C to see for yourself that it works.
- Magnus_EdstrmDec 20, 2022Copper Contributor
I am not having success (or I just botched it)
This is what the word-document looks like
- Dec 20, 2022If you upload a copy of the file, I will check it and let you know what it needs to make it work.
- Magnus_EdstrmDec 20, 2022Copper Contributor
- Magnus_EdstrmDec 20, 2022Copper ContributorThank you so much Doug, I was on the right track with the VB editor. I will give it a go and see if I can make this work.