Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Read MHTML document from Macro

Hi All,

I need to write a macro in which I am required to open a MHTML file
and read its contents. I am currently using the following code -

file_name = sPath & "\" & file.Name 'I am able to get the
name of the file correctly in file.Name
Open file_name For Input As #1
Do While Not EOF(1)
Input #1, Mystring
If InStr(1, Mystring, "<TD bgColor=#cae3e3<B") < 0
Then
MsgBox Mystring
End If
Loop

I am not able to figure out from where exactly does the value in
Mystring gets populated from. I tried doing "view source" in IE on
the mht file, but it doesn't exactly read all the contents from
there.

Any pointers??

Thanks much!
Satish
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove read ony from document Gail & Jack Setting up and Configuration of Excel 0 August 11th 08 12:11 PM
How did my document become read-only? JennyX Excel Worksheet Functions 1 June 6th 08 07:59 AM
Save as mhtml loses custom document properties. Sarang Bapat Excel Programming 0 February 26th 07 08:41 AM
Save As MHTML loses custom document properties. Sarang Bapat Excel Programming 0 February 26th 07 06:35 AM
Why can't I write in a document that is not read only? DLD Excel Worksheet Functions 1 November 18th 05 10:34 PM


All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"