Oi arley
Liguei o gravador de macros e importei uma tabela (era a única) do arquivo cujo nome é: Teste html.htm
Deu nisso aí
Sub Macro2()
'
' Macro2 Macro
'
'
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;file:///C:/Users/mcbranco/Documents/Excel%20Avançado/FORUM%20MICROSOFT/Teste%20Html.htm" _
, Destination:=Range("$C$3"))
.Name = "Teste%20Html_1"
.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
Talvez vc possa adaptar mudando a URL (acho que tem ser o caminho completo), o nome do arquivo e o destino.
Os %20 representam espaços.
M.