ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¦p¦ó¨C¦¸¶}±Ò¿ï¾Ü¶×¤J¤å¦rÀɤ§¸ô®|

¦^´_ 1# sping
¸Õ¸Õ¬Ý
  1. Sub Macro1()
  2. '
  3. ' Macro1 Macro
  4. ' ¶×¤JÀÉ®×
  5. '

  6. '
  7.    txtFile = Application.GetOpenFilename("¤å¦rÀÉ, *.txt")
  8.    txtFile = "TEXT;" & txtFile
  9.     With ActiveSheet.QueryTables.Add(Connection:=txtFile, Destination:=Range("$A$2"))
  10.         .FieldNames = True
  11.         .RowNumbers = False
  12.         .FillAdjacentFormulas = False
  13.         .PreserveFormatting = True
  14.         .RefreshOnFileOpen = False
  15.         .RefreshStyle = xlInsertDeleteCells
  16.         .SavePassword = False
  17.         .SaveData = True
  18.         .AdjustColumnWidth = True
  19.         .RefreshPeriod = 0
  20.         .TextFilePromptOnRefresh = False
  21.         .TextFilePlatform = 950
  22.         .TextFileStartRow = 1
  23.         .TextFileParseType = xlFixedWidth
  24.         .TextFileTextQualifier = xlTextQualifierDoubleQuote
  25.         .TextFileConsecutiveDelimiter = False
  26.         .TextFileTabDelimiter = True
  27.         .TextFileSemicolonDelimiter = False
  28.         .TextFileCommaDelimiter = False
  29.         .TextFileSpaceDelimiter = False
  30.         .TextFileColumnDataTypes = Array(9, 1, 9, 9)
  31.         .TextFileFixedColumnWidths = Array(38, 32, 28)
  32.         .TextFileTrailingMinusNumbers = True
  33.         .Refresh BackgroundQuery:=False
  34.     End With
  35.     ActiveWindow.SmallScroll Down:=-27
  36. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤H¨ÆªºÁ}Ãø»PµZ¿i¡A´N¬O¤@ºØ¦ÒÅç¡C
ªð¦^¦Cªí ¤W¤@¥DÃD