![]() |
|
|
|
#1
|
||||
|
||||
|
Did you put the code in the template (and save it as macro enabled) or in your normal template?
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#2
|
|||
|
|||
|
Quote:
So i just took the form template that came with docbundler and just renamed the fields and linked them to different bookmarks. I can run it and it populates no problem when i make the changes but dont save. When i save it though, it seems to lose the ability to run. Iv tried saving it in the 03 template file (.dot) as well as macro enabled (.dotm) and it wont run. |
|
#3
|
|||
|
|||
|
Quote:
Where are you saving it? Where are you putting the code? |
|
#4
|
|||
|
|||
|
Quote:
Maybe Im doing it wrong. Here are the steps im doing: - open the data sheet file template - remove the restriction to be able to edit - change the text for the fields - change the properties of the form fill box and change the bookmark names to the ones per my templates - re-apply the restrictions to fill form only - save file Btw, Im using the word 2003 version of the docbundler template. Trying the 2010 one gives me an error. Iv saved to both the 2003 .dot and the macro enabled .dotm and after saving all the vba code gets stripped out. My thought was since I was using the same file and not changing any of the code, that it would still be there while saving? Maybe im wrong? Update: I got it working by saving as just a regular macro enabled word doc and not the template. Seems to be working now. Thank you all for your help with this. Really appreciate it! Last edited by lordbodom; 08-15-2020 at 08:40 PM. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using a UserForm to fill blanks in a letter | blanchetdb | Word VBA | 2 | 04-05-2019 07:06 AM |
| Fill userform, combobox and frame based on data from multiple worksheets | Divinedar | Excel Programming | 8 | 04-26-2018 05:07 PM |
Customizing form fill docs with dropdowns
|
strodden | Word VBA | 13 | 09-22-2017 06:35 AM |
| Fill MS-Word docs/forms with name address data from external source | yajnaval | Word | 2 | 02-14-2015 10:48 PM |
| Add watermark to multiple word docs | mykeee | Word | 1 | 09-21-2013 04:01 PM |