» »

uvoz podatkov iz spleta -username/password

uvoz podatkov iz spleta -username/password

basist13 ::

Zdravo,

s spletne strani bi rad v excel uvažal podatke, pri čemer pa je za dostop do podatkov potreben username in password. Kako bi napisal tale uvoz posdatkov v visual basicu?

Hvala za pomoč.

Lp;basist

poskušal sem s temle, vendar ne deluje

Sub Login_WebQuery()
Dim MyPost As String
Const MyUrl As String = "http://www.gvin.com/LoginPageGvin/Login...
Const txtUserName As String = "xxx" 'Change user name here
Const txtPassword As String = "xxxx" 'Change password here

MyPost = txtUserName & txtPassword

With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.gvin.com/siMatrix/Default.as... _
, Destination:=Range("$A$5"))
.Name = "Default.aspx?Stran=podjetje&Podstran=lastniska&ID=5043611"
.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,5,10,11,""ctl12_ctl01_gvPretekloStanje"""
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False

End With
End Sub


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

java / mysql / počasne poizvedbe

Oddelek: Programiranje
5687 (616) BRBR
»

Makroji v excelu

Oddelek: Programska oprema
62345 (2239) smetko
»

VB & SQL 2005 Express

Oddelek: Programiranje
141192 (1074) camx
»

Excel vprašanje

Oddelek: Programiranje
81081 (980) matic
»

API+VB

Oddelek: Programiranje
261988 (1692) webblod

Več podobnih tem