Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2020, 07:31 AM
lordbodom lordbodom is offline Fill multiple word docs with 1 vb userform? Windows 10 Fill multiple word docs with 1 vb userform? Office 2019
Novice
Fill multiple word docs with 1 vb userform?
 
Join Date: Jul 2020
Posts: 10
lordbodom is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
Did you put the code in the template (and save it as macro enabled) or in your normal template?

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.
Reply With Quote
  #2  
Old 08-15-2020, 01:33 PM
Charles Kenyon Charles Kenyon is offline Fill multiple word docs with 1 vb userform? Windows 10 Fill multiple word docs with 1 vb userform? Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,584
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by lordbodom View Post
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.
If you are using Word 2019 you should be saving as a .dotm file.

Where are you saving it?

Where are you putting the code?
Reply With Quote
  #3  
Old 08-15-2020, 05:47 PM
lordbodom lordbodom is offline Fill multiple word docs with 1 vb userform? Windows 10 Fill multiple word docs with 1 vb userform? Office 2019
Novice
Fill multiple word docs with 1 vb userform?
 
Join Date: Jul 2020
Posts: 10
lordbodom is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
If you are using Word 2019 you should be saving as a .dotm file.

Where are you saving it?

Where are you putting the code?

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.
Reply With Quote
Reply



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
Fill multiple word docs with 1 vb userform? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 12:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft