Hi,
I`m using vba code in excel to get data from a page internet like this :
Sub Macro1()
With ActiveSheet.QueryTables.Add(Connection:="URL; _
Destination:=Range("bC7"))
.Name = "tek-tips"
.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
.Refresh BackgroundQuery:=False
End With
End Sub
No problem here. My big problem is: - How I can close the internet explore active window after I finished capture data???
Thanks.
I`m using vba code in excel to get data from a page internet like this :
Sub Macro1()
With ActiveSheet.QueryTables.Add(Connection:="URL; _
Destination:=Range("bC7"))
.Name = "tek-tips"
.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
.Refresh BackgroundQuery:=False
End With
End Sub
No problem here. My big problem is: - How I can close the internet explore active window after I finished capture data???
Thanks.