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

Thanks Ron

Regards
Alvin


"Ron de Bruin" wrote:

Hi Alvin

Download the workbook examples from this book
http://www.wrox.com/WileyCDA/WroxTit...load_code.html

There is a file named
ExchangeRates.xls


--
Regards Ron de Bruin
http://www.rondebruin.nl


"alvin Kuiper" wrote in message ...
Hi Ron
I don'rt no why but if i try this
i don't get data in my sheet
well yes i get data but not the currency
I have try with
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.valutakurser.dk"
Do Until oIE.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop

sPage = oIE.Document.body.InnerHtml
intStart = InStr(1, sPage, "<!-- Nationalbankens Middelkurser - Start --")
intSlut = InStr(intStart, sPage, "<!-- Nationalbankens Middelkurser - Slut
--")
Info = Mid(sPage, intStart, intSlut - intStart)
MsgBox Info
End Sub
but dont know what to do

Alvin


"Ron de Bruin" wrote:

One way is to open the page

Sub test()
Workbooks.Open "http://www.valutakurser.dk/"
End Sub

And delete the columns you not want


--
Regards Ron de Bruin
http://www.rondebruin.nl


"alvin Kuiper" wrote in message
...
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 11:06 AM.

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"