LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Meg Meg is offline
external usenet poster
 
Posts: 22
Default Open HTML as Text

I am trying to open a HTML file as text in Excel VBA to programmatically add
some tags.

I tried to use this command:

Workbooks.OpenText Filename:=sInputPathFile, Origin:=xlWindows _
, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1),
Array(200, 1))
Columns("A:A").EntireColumn.AutoFit

But it still opens the file as HTML. If I can the extension to .txt it
opens fine.

Does anyone know a method to open it as text.

Thanks,

MEG
 
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
Open HTML file, but doesn't copy correctly Kmason5727 Excel Worksheet Functions 0 October 24th 08 04:47 AM
Open HTML in Excel [email protected] Excel Discussion (Misc queries) 1 April 13th 05 12:16 PM
How to open an html file from within a macro 38N90W Excel Programming 1 August 18th 04 12:49 AM
Open Html file i Excel Shp Excel Programming 0 December 18th 03 09:40 AM
Open file saved in HTML format Sheela Excel Programming 4 September 8th 03 05:25 AM


All times are GMT +1. The time now is 03:17 AM.

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"