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

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

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

¥H¤Uªºµ{¦¡¬O¥Î¿ý»s¥¨¶°ªº¥\¯à§¹¦¨ªº
¥D­n¬O­n±N¤å¦rÀɶפJexcel«ü©wÄæ¦ì
¥i¬O¦]¬°¦³®É­Ô¤å¦rÀɸô®|¤£¤@¼Ë
­Pµ{¦¡µLªk¶¶§Q°õ¦æ
¤£ª¾¹D­n«ç¼Ë§ï¦¨¥i¥H¸õ¥Xµøµ¡¿ï¾ÜÀɮ׸ô®|¡A¤~¥i¥H¤£¥Î¨C¦¸­«¿ý¥¨¶°
§Æ±æ¦³¤H¯à¨ó§U¡AÁÂÁÂ
  1. Sub Macro1()
  2. '
  3. ' Macro1 Macro
  4. ' ¶×¤JÀÉ®×
  5. '

  6. '
  7.     With ActiveSheet.QueryTables.Add(Connection:= _
  8.         "TEXT;C:\Users\USER\Desktop\·s·|\99.txt", Destination:=Range("$A$2"))
  9.         .Name = "99"
  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

¦^´_ 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

¦^´_ 1# sping

'¿ïÀÉ®×   
Set FD = Excel.Application.FileDialog(msoFileDialogFilePicker)  '³]©w¿ï¨úÀÉ®×¥\¯à
FD.Filters.Clear    '²M°£¤§«eªº¸ê®Æ
'FD..InitialFileName = "c:temp\"'Àq»{¸ô®|
FD.Filters.Add "Excel File", "*.xls*" '³]©wÅã¥Üªº°ÆÀɦW
If FD.Show = -1 Then
     Path = FD.SelectedItems(1)
Else
    End
End If
Workbooks.Open Path
PKKO

TOP

¦^´_ 2# Kubi


«D±`ÁÂÁÂ
¥i¥H¥Î¤F

TOP

¦^´_ 3# PKKO


·PÁ§A
¶¶§Q¸Ñ¨M¤u§@¤Wªº°ÝÃD

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD