Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Would anyone know how to open (read), from the VBA, a TXT file which is on the web ? Thank you, Damir |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is one way of reading the body text of a web page, you can pass the
webtx string looking for the values and related text as required. You need to make a reference to Microsoft Office Object Library. Private sURL As String, webtx As string Private ie As Object Sub WebLink() Set ie = CreateObject("InternetExplorer.Application") sURL = "http://www.xyz..com" ie.Navigate sURL 'wait for response Do Until Not ie.Busy And ie.ReadyState = 4 DoEvents Loop ' get html page body text webtx = ie.Document.body.innertext ie.Visible = True 'close ie and remove memory references ie.Quit Set ie = Nothing End Sub Cheers Nigel "Damir Sudarevic" wrote in message ... Hi, Would anyone know how to open (read), from the VBA, a TXT file which is on the web ? Thank you, Damir |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() the first thing I would try is workbooks.Open "http://www.mysite.com/myfile.txt" or turn on the macro recorder, and paste the URL to the file in the File=Open dialog and see if excel opens it. -- Regards, Tom Ogilvy "Damir Sudarevic" wrote in message ... Hi, Would anyone know how to open (read), from the VBA, a TXT file which is on the web ? Thank you, Damir |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Excel Discussion (Misc queries) | |||
Unable to open a 82 KB XLSM file due to "Too many different cellformats" & "Converter failed to open the file." errors. | Setting up and Configuration of Excel | |||
excel 2003 saved file will not open without a blank workbook open | Excel Discussion (Misc queries) | |||
In Excel - Use Windows Explorer instead of File Open to open file | Excel Discussion (Misc queries) | |||
How do I stop Excel from closing the open file each time I open a. | Setting up and Configuration of Excel |