This should be a simple one for those in the know. My demo code below opens Word, makes it visible, types some text then quits. How do I quit without saving? I have looked under help for 'quit' in Word and tried everything that I can. Help!!
Function TryIt()
Dim MyWord As Object
Set MyWord = CreateObject("word.application"
MyWord.Documents.Add
MyWord.Visible = True
MyWord.Selection.TypeText Text:="Type some stuff"
MyWord.Application.Quit
Set MyWord = Nothing
End Function
Thanks in advance
Dave
Function TryIt()
Dim MyWord As Object
Set MyWord = CreateObject("word.application"
MyWord.Documents.Add
MyWord.Visible = True
MyWord.Selection.TypeText Text:="Type some stuff"
MyWord.Application.Quit
Set MyWord = Nothing
End Function
Thanks in advance
Dave