我正在尝试在 Excel 的单元格中导入逗号分隔的数字。它在网络上看起来像这样:
000002678,000002737,000002827,000004326,000008528
但是,一旦我将其导入到 excel 中,它就会转换为以下内容:
2,678,000,002,737,000,000,000,000,000,000,000,000,000
我怎样才能像在网络上一样保持格式而不是将其视为一个大数字?
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://localhost:65076/TestData", Destination:=Range( _
"$A$1"))
.Name = "Test"
.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