A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

calling ms word



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 23rd 08, 04:40 AM posted to microsoft.public.outlook.program_vba
Southern at Heart
external usenet poster
 
Posts: 34
Default calling ms word

In my VBA, how do I open up a new document from the template "My Template"
which is saved in my templates folder. I'm using office 2003 pro.
thanks,
southern at heart
Ads
  #2  
Old February 25th 08, 06:16 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default calling ms word



From Outlook:

Dim Wd as Word.Application
Dim Doc as Word.Document
Dim File$

File="c:\your template folder\my template.dot"

Set Wd=CreateObject("Word.Application")
Set Doc=Wd.Documents.Open(File)

BTW: For Word specific questions you might better ask in newsgroup for Word.
This one is for Outloook.

--
Best regards
Michael Bauer - MVP Outlook
Use Outlook Categories? This is Your Tool:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Fri, 22 Feb 2008 20:40:00 -0800 schrieb Southern at Heart:

In my VBA, how do I open up a new document from the template "My Template"
which is saved in my templates folder. I'm using office 2003 pro.
thanks,
southern at heart

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling an Add-in method from another Application David Add-ins for Outlook 1 March 17th 07 06:33 PM
Calling an Add-in method from another Application David Add-ins for Outlook 4 March 9th 07 11:09 PM
contacts calling Jeff Outlook - Using Contacts 3 March 1st 07 10:39 PM
Calling all MVPs Rob Outlook - General Queries 1 July 25th 06 04:04 AM
Calling For Backup! Ron Outlook Express 2 July 14th 06 05:42 PM


All times are GMT +1. The time now is 12:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.