Private Sub UserForm_Initialize()
Dim BB As String
On Error Resume Next
Application.ScreenUpdating = False
Workbooks.Add
BB = ActiveWorkbook.Name
Sheets("Sheet1").Select
Sheets("Sheet1").Name = "Web Query"
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://tracker.hitechmold.com/ToolTracker/framework/main1.asp", _
Destination:=Range("$A$1"))
.Name = "main1"
.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 = "10"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
lastrow = Range("A" & Rows.Count).End(xlUp).Row
With ListBox1
.ColumnCount = 4
.ColumnWidths = "60;40;600;40" 'points
.BoundColumn = 1 'if it's bound to a cell, column 1 is returned
.ControlSource = "Web Query!E2"
.RowSource = "A1:D1" & lastrow 'The array of cells that provide values
End With
Workbooks(BB).Saved = True
Workbooks(BB).Close
Application.ScreenUpdating = True
End Sub
[code]