Command button opening word template

R

Richard Pieri

Hello,

I have a command button in a custom outlook form that
opens a word template (code below) the problem I have is
from the command buttom it opens the actual template file
instead of a new copy of it as a template is supposed to.
If I go directly to the file on our network it opens it
up the correct way. I have the template document stored
on our network.

Sub CommandButton2_click
Set Word = CreateObject("Word.Application")
Word.Visible = TRUE
Word.Documents.open("\\CSHARE\Employee Forms\Shared
Files\Auto Incident Rpt.dot")
End Sub

Exchange 2000
Outlook XP
 
S

Sue Mosher [MVP-Outlook]

Use Documents.Add instead of Documents.Open when you want to create a new
item from a template.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top