Looking for some direction on exporting data from a form to a word template
I have multiple text boxes for each record I want to export to a template word form automatically...Any help is appreciated
despino, you use the Add method of the Application.Documents object collection and set the parameter to specify the path of the template. (If you omit the template parameter the regular Normal template is used.) The return value of the Add method is the new document created and you work with this the same way you work with any document when doing Word automation. You can check with documentation, methods/A/Add "as it applies to the Documents object". http://msdn.microsoft.com/library/en-us/vbawd10/html/womthAdd.asp
I also guess the Bookmarks collection would be of particular interest.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.