close

this code imports data
(and creates a problem as when i delete the data the cell's cannot be
imported to again)
Range(quot;A6quot;).Select
With ActiveSheet.QueryTables.Add(Connection:= _
quot;TEXT;C:\Documents and Settings\wardell son\Desktop\agw8_1quot;,
Destination:= _
Range(quot;A6quot;))
.Name = quot;agw8_1quot;
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 437
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = True
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1, 1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With

but i want to just import the numbers from the link and input them into the
sheet
also i want the macro to ask me what file i wish to import from using an
input box

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()