S
Steven Moschidis
I have found myself in a situation where I have to open an HTML file and
then save it as a word document and then do some work on it.
The bit that is troubling me is the actual opening and saving...
I am trying to do this using VB6 and this is the code I am using to open the
HTML file and save the .doc file.
Set docHTML = wrdApplication.Documents.Open("c:\test.htm")
docTranscript = wrdApplication.ActiveDocument.SaveAs("c:\test.doc",
wdFormatDocument)
Please note that I have to use Office 2000 (MS Word Obj Lib Ver 9) and that
the error I get with this code highlights SaveAs and says "Expected Function
or Variable"
I've been using VB6 for quite some time now (approx. 2 yrs), but never dealt
with office, so if I'm being extremely stupid then please forgive my
ignorance.
Thank you in advance for your assistance.
Steven Moschidis
then save it as a word document and then do some work on it.
The bit that is troubling me is the actual opening and saving...
I am trying to do this using VB6 and this is the code I am using to open the
HTML file and save the .doc file.
Set docHTML = wrdApplication.Documents.Open("c:\test.htm")
docTranscript = wrdApplication.ActiveDocument.SaveAs("c:\test.doc",
wdFormatDocument)
Please note that I have to use Office 2000 (MS Word Obj Lib Ver 9) and that
the error I get with this code highlights SaveAs and says "Expected Function
or Variable"
I've been using VB6 for quite some time now (approx. 2 yrs), but never dealt
with office, so if I'm being extremely stupid then please forgive my
ignorance.
Thank you in advance for your assistance.
Steven Moschidis