Ecc_Arr = Range("B2").Value
SGNC_Arr = Range("B3").Value
Debug.Print Ecc_Arr
Debug.Print SGNC_Arr
With ActiveSheet.QueryTables.Add(Connection:=Ecc_Arr, Destination:=Sheets(B - C - I - A - E).Range("$A$1"))
.Name = "ritiri_sede"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 850
.TextFileStartRow = 1
.TextFileParseType = xlFixedWidth
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1, 1, 1, 1)
.TextFileFixedColumnWidths = Array(5, 9, 14, 12, 13, 13, 7, 16)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With |