I am trying to create a word document from a template. I am getting the word file save as screen when I thought the save as line would do this for me.
Code:
'Start Word and open the document template.
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add("q:\computer.adm\basbrian\delegation.dot")
oDoc.SaveAs("q:\computer.adm\basbrian\Delegation for " & CboName.Text & ".doc")
oDoc.Close()
oDoc = Nothing
oDoc = oWord.Documents.Add("q:\computer.adm\basbrian\Delegation for " & CboName.Text & ".doc")