View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
DS-NTE DS-NTE is offline
external usenet poster
 
Posts: 24
Default Getting Data for excell off of the internet

Sth like this maybe? Watch for linewraps!

Record a macro when performing the steps DataImport External DataNew Web
Query

Sub HentSvenskPris()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.nordpool.com/marketinfo/elspot/stockholm/elspot.cgi?interval=last8&ccurrency=nok&type=html"
_
, Destination:=Range("A1"))
.Name = "elspot.cgi?interval=last8&ccurrency=nok&type=html "
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "4"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:=False
End With
End Sub

"ChrisG" skrev i melding
...
I think I may be reaching with this, but is there a way for excel to
program
excel to obtain infromation off of the internet? I think I may be asking
for
too much, but I guess it doesn't hurt to ask!