G
Guest
hi to all of you... I am importing a word document that some people send to
me and at this point, I cannot choose which document I want to import.
My code is the following:
Dim oDoc As Object 'Word.Document
Set oDoc = GetObject("C:\Documents and Settings\luva\My Documents\Base de
datos\ComputerRepair3.doc")
and it's working well but as you can see, it only gets the ComputerRepair3
and I need to choose wich one...
I tried something like this but it's not working....
Dim appWord As Word.Application
Dim doc As Word.Document
strDocName = "C:\Documents and Settings" & _
InputBox("Enter the name of the Word doc " & _
"you want to import:", "Import Document")
Set appWord = GetObject(, "Word.Application")
Set doc = appWord.Documents.Open(strDocName)
ok, any ideas????? thank you in advance for your help!
me and at this point, I cannot choose which document I want to import.
My code is the following:
Dim oDoc As Object 'Word.Document
Set oDoc = GetObject("C:\Documents and Settings\luva\My Documents\Base de
datos\ComputerRepair3.doc")
and it's working well but as you can see, it only gets the ComputerRepair3
and I need to choose wich one...
I tried something like this but it's not working....
Dim appWord As Word.Application
Dim doc As Word.Document
strDocName = "C:\Documents and Settings" & _
InputBox("Enter the name of the Word doc " & _
"you want to import:", "Import Document")
Set appWord = GetObject(, "Word.Application")
Set doc = appWord.Documents.Open(strDocName)
ok, any ideas????? thank you in advance for your help!