Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 05-05-2015, 04:32 PM
rogelinepaula rogelinepaula is offline Build an Automatic Document Template for Word Windows 8 Build an Automatic Document Template for Word Office 2013
Novice
Build an Automatic Document Template for Word
 
Join Date: May 2015
Posts: 22
rogelinepaula is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
Basically yes. You can copy the FillBM function to the template module that contains the macro that calls the userform. That macro at its simplest would be something like

Code:
Sub AutoNew()
Dim oFrm As New UserForm1        'The name of the userform
    oFrm.Show
    Unload oFrm
End Sub
Hello again, graham! I've tried using the code but it gave me the error "Compile Error: Sub or Function not defined." And then the "Private Sub CommandButton1_Click()" is highlighted in yellow with the arrow outside the box and the 'FillBM' is also highlighted. When I went back to the document, I've also noticed that the bookmarks were once again gone. I wonder if I did something wrong.
Reply With Quote
 

Tags
template, userform, vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Build an Automatic Document Template for Word VBA using Building Blocks to build document kintap Word VBA 2 07-11-2014 10:56 AM
Create a Form to Build a Document Wordsquirrel Word VBA 7 05-16-2014 10:33 AM
Build an Automatic Document Template for Word One document build from subfiles duckman Word 3 03-04-2014 10:12 AM
Build an Automatic Document Template for Word Automatic update of links in template - closing attached template without saving stefaan Word 2 11-02-2013 07:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:23 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