Skip to content

Instantly share code, notes, and snippets.

@ys2310
Created November 10, 2013 09:39
Show Gist options
  • Select an option

  • Save ys2310/7396067 to your computer and use it in GitHub Desktop.

Select an option

Save ys2310/7396067 to your computer and use it in GitHub Desktop.
Web
Sub WebQuery()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.okayasu-shoji.co.jp/quote/20120530.htm", Destination:=Range( _
"A1"))
.Name = "20120531"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment