Hello, I have created a switchboard type form in Access2010, when I click on one of the buttons on the form I would like it to open a word template (.dot file) that I have created as a new word document (.doc). I run Windows XP and MS Office 2010. Below is what I have so far which I have gotten from various web sites. (I am VERY new to VB 7)
Private Sub Option1_Click()
Dim WordApp As Word.Application
Dim WordTemp As Word.Template
Dim STRTempName As String
STRTempName = "C:\Documents and Settings\delara\Desktop\Projects\Reports\Test\Templates\TheFile.dot"
Set WordApp = Word.Application
Set WordTemp = WordApp.Documents.Open(STRTempName)
WordApp.Visible = True
End Sub
the problem is that it opens up the actual .dot file in a read-only type setting.
Thank you in advance,
DeLara
Private Sub Option1_Click()
Dim WordApp As Word.Application
Dim WordTemp As Word.Template
Dim STRTempName As String
STRTempName = "C:\Documents and Settings\delara\Desktop\Projects\Reports\Test\Templates\TheFile.dot"
Set WordApp = Word.Application
Set WordTemp = WordApp.Documents.Open(STRTempName)
WordApp.Visible = True
End Sub
the problem is that it opens up the actual .dot file in a read-only type setting.
Thank you in advance,
DeLara