LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default geting data from internet

hi
i have found this examble:
Sub HentInfo()
Dim oIE As SHDocVw.InternetExplorer
Dim sPage As String
Dim intStart, intSlut As Long
Dim Info As String
Set oIE = New SHDocVw.InternetExplorer
oIE.Navigate "http://www.dr.dk"
Do Until oIE.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop

sPage = oIE.Document.body.InnerHtml
intStart = InStr(1, sPage, "Vejret")
intSlut = InStr(intStart, sPage, "læs mere")
Info = Mid(sPage, intStart, intSlut - intStart + 8)
MsgBox Info
End Sub
But get an error in
Info = Mid(sPage, intStart, intSlut - intStart + 8)

To bee honest i don't know what the script do all the way

regards
alvin

 
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
geting a if/and number off of two list cells nbach Excel Worksheet Functions 2 December 12th 08 08:05 PM
geting the smaller number in a line?? Felipe Excel Discussion (Misc queries) 2 December 28th 05 03:17 PM
Question that should be easy but is geting on my nerves :) Hemmiv Iceland Excel Discussion (Misc queries) 5 December 5th 05 12:58 PM
geting hiperlink wiyh vlookup Horacio Excel Worksheet Functions 0 February 24th 05 11:36 PM
Erroe on Geting External Data MESTRELLA29[_2_] Excel Programming 0 February 10th 05 07:13 PM


All times are GMT +1. The time now is 04:44 PM.

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

About Us

"It's about Microsoft Excel"