Una famiglia di software per fogli di calcolo Microsoft con strumenti per l'analisi, la creazione di grafici e la comunicazione dei dati.
Ciao Giuseppe.
il problema lo riscontro anche avviando excel come amministratore.
La riga che viene evidenziata è: .Refresh BackgroundQuery:=True
Prova qualcosa del genere:
'=========>>
Option Explicit
'--------->>
Public Sub Tester()
Dim WB As Workbook
Dim SH As Worksheet
Dim oConn As WorkbookConnection
Set WB = ThisWorkbook
With WB
Set SH = .Sheets.Add
SH.Name = "RIEPILOGO"
For Each oConn In .Connections
oConn.Delete
Next oConn
End With
With SH.QueryTables.Add( _
Connection:= _
"URL;http://www.amvendors.com/vendors/ASN/Default.aspx", _
Destination:=SH.Range("$A$1"))
.Name = "TTT"
.FieldNames = False
.RowNumbers = True
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "1,2"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
On Error Resume Next
.Refresh
On Error GoTo 0
End With
End Sub
'<<=========
===
Regards,
Norman