In the project that I am working on I have used the following code...
Code:
Dim objWord As Object
Set objWord = CreateObject("[COLOR=blue]Word.Application[/color]")
objWord.[COLOR=blue]Documents[/color].Open ([path to document])
objWord.Visible = True
which is working well. This launches Word and displays the document.
I have been requested to build in the functionality to view emails from VB. I can load them into Word but it displays all of the HTML baggage as well as the email text.
I assume that I will need to code it along these lines...
Code:
Dim objEmail As Object
Set objEmail = CreateObject("[b][COLOR=blue]__???___[/color ][/b].Application")
objEmail.[b][COLOR=blue]__???___[/color][/b].Open ([path to email])
Can someone tell me what is the .Application that I should use ? I've tried - Email / Mail / Outlook - but none of those worked. Just get an "ActiveX can't create object" err.message
Many thanks in anticipation.
Doug.