Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Opening a template from vba

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Santiago Torras - 04 Sep 2006 01:40 GMT
How can I open a template from VBA (and get its associated vba code executed)?

I want to create a new document, based on that template, all this from vba
code....
Signature

thanks

Jezebel - 04 Sep 2006 02:29 GMT
Documents.Add Template:="C:\....\MyTemplate.dot"

> How can I open a template from VBA (and get its associated vba code
> executed)?
>
> I want to create a new document, based on that template, all this from vba
> code....
Jeffery B Paarsa - 13 Sep 2006 00:01 GMT
How can I open this Template but do not execute AutoNew macro but execute a
subroutine for populating fields that I already have collected.  I don't want
the UserForm1 to be displayed to the user just execute a sub within the new
doc for populating the already collected info.
Signature

Jeff B Paarsa

> Documents.Add Template:="C:\....\MyTemplate.dot"
>
[quoted text clipped - 3 lines]
> > I want to create a new document, based on that template, all this from vba
> > code....
Russ - 01 Oct 2006 08:07 GMT
Jeff,
It might be easier to duplicate your needed template and delete the portions
you don't want, such as the AutoNew subroutine. Then attach that new
template to have the subroutines available that you require.

> How can I open this Template but do not execute AutoNew macro but execute a
> subroutine for populating fields that I already have collected.  I don't want
[quoted text clipped - 8 lines]
>>> I want to create a new document, based on that template, all this from vba
>>> code....

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.