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

[µo°Ý] Ãö©óDir ¨ú±oªº²M³æ°µ±Æ§Ç¡A·PÁÂ~

¦^´_ 2# ui123
    Dir ¤£¯à«ü©w±Æ¦C, ¦ý¥i¥H¦bDIR±o¥X«á±Æ§Ç
  1. Sub file()
  2.     Dim myFolder As String, myFile As String
  3.     Dim i As Integer
  4.     myFolder = "C:\temp\"
  5.     myFile = Dir(myFolder & "*.xlsx")
  6.     i = 1
  7.     Do While myFile <> ""
  8.         Cells(i, 1).Value = myFile
  9.         myFile = Dir()
  10.         i = i + 1
  11.     Loop
  12.     With ActiveSheet.Sort
  13.         .SetRange Range("A:A")
  14.         .Header = xlNo
  15.         .MatchCase = False
  16.         .Orientation = xlTopToBottom
  17.         .Apply
  18.     End With

  19. End Sub
½Æ»s¥N½X
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD