russellmunday
Technical User
I have a program that needs to write the contents of a string to a Microsoft Word file and save it, the problem is i can not see any write command has anyone done this before that could show me please.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim oWord As Word.Application
Dim oDoc As Word.Document
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add
oDoc.Range.Text = "My text"
oDoc.SaveAs("c:\test.doc")
oWord.Application.Quit()