我可以從已知的ulr中提取數據,但是我可以使用excel瀏覽網站。使用Excell Vba導航網站
例如可以擅長做谷歌搜索並將結果放在電子表格上。或導航框架內網站。
此代碼從網站中提取數據。
With ActiveSheet.QueryTables.Add(Connection:= _
PUT_URL_HERE, _
Destination:=Range("A1"))
.Name = "I need serious help"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = False
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
創建一個宏來跟蹤我做一個網絡查詢並不能很好地破解它。 – Ommit 2010-04-13 21:01:38
考慮導航基於HTML的網站涉及的內容:您需要發送包含適當數據的請求,然後閱讀返回的文檔。 Excel可以引用適當的庫,通過VBA – barrowc 2010-04-16 02:33:35
來做這兩件事情,這是令人鼓舞的,要知道這是可能的。你知道任何好的資源,或者這個正在做的例子 – Ommit 2010-04-19 17:49:52