Hi,
I seem to be going round in circles trying to find the answer, so I hope you can help.
I have a string which is HTML , I want to create an HTMLDocument object so I can parse the elements but I just can't work out how to do it.
I have
But it errors , i've tried just setting the HTMLDoc = the string but that errors, I've tried WebBrowser.DocumentText = string, but that errors (I think that only works in C#).
I've tried MyBrowser.document = string but that errors?
I just can't seem to work out the correct syntax so your help is appreciated.
Cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
I seem to be going round in circles trying to find the answer, so I hope you can help.
I have a string which is HTML , I want to create an HTMLDocument object so I can parse the elements but I just can't work out how to do it.
I have
Code:
Dim HTMLDoc As HTMLDocument
Dim sBody As String
Dim MyBrowser As InternetExplorer
sBody = DLookup("HTMLBody", "Email", "MailID=1")
Set MyBrowser = New InternetExplorer
MyBrowser.HTMLBody = sBody
HTMLDoc = MyBrowser.Document
But it errors , i've tried just setting the HTMLDoc = the string but that errors, I've tried WebBrowser.DocumentText = string, but that errors (I think that only works in C#).
I've tried MyBrowser.document = string but that errors?
I just can't seem to work out the correct syntax so your help is appreciated.
Cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts