Command button opening word template

  • Thread starter Thread starter Richard Pieri
  • Start date Start date
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
 
Use Documents.Add instead of Documents.Open when you want to create a new
item from a template.
 
Back
Top