May 21, 2002 #1 Bigpapou Programmer May 23, 2001 41 CA I can open word but not a specific files like "c:\something.doc". How can I do that? Anything would help!!!
I can open word but not a specific files like "c:\something.doc". How can I do that? Anything would help!!!
May 21, 2002 1 #2 maggieb IS-IT--Management Jun 26, 2001 50 US I have used something similar to this in the past: Dim objWord As Object 'Word.Document Dim objstr As String objstr = "c:\something.doc" Set objWord = GetObject(objstr, "Word.Document" objWord.Application.Visible = True objWord.Application.Documents.Open FileName:=objstr Upvote 0 Downvote
I have used something similar to this in the past: Dim objWord As Object 'Word.Document Dim objstr As String objstr = "c:\something.doc" Set objWord = GetObject(objstr, "Word.Document" objWord.Application.Visible = True objWord.Application.Documents.Open FileName:=objstr
May 21, 2002 Thread starter #3 Bigpapou Programmer May 23, 2001 41 CA TX maggieb!!! The last line was the missing one. objWord.Application.Documents.Open FileName:=objstr Upvote 0 Downvote