48Highlander
Technical User
How do I open a Word template for editing? I have the following code:
This code actually opens the template but after it runs I get an error that Word cannot open the template.
Bill J
Code:
Dim strTemplate As String
' Launch Word and load the letter template
' Late binding references to Word
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
Dim objDoc As Object
objWord.Visible = True
strTemplate = TemplatePath & Me.cboLetterSelect.Column(3)
Set objDoc = objWord.Documents.Add(strTemplate)
This code actually opens the template but after it runs I get an error that Word cannot open the template.
Bill J