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

½Ð°Ý¦p¦ó¥ÎVBA¶}±ÒÀÉ®×Á`ºÞµøµ¡Åª¨úFolder©ÎFilesªº¸ô®|orÀɦW

½Ð°Ý¦p¦ó¥ÎVBA¶}±ÒÀÉ®×Á`ºÞµøµ¡Åª¨úFolder©ÎFilesªº¸ô®|orÀɦW

Dear ¦U¦ì¤j¤j¡A

½Ð°Ý¤j¤j¦³¨S¦³¿ìªkÅýuser ¦bExcel¸Ì­± «ö¤UButton µM«á´N·|¬Ý¨ìÀÉ®×Á`ºÞµøµ¡(Ãþ¦ü¦sÀɵe­±ªºµøµ¡)¡AµM«á«ü¥t¤@­Ó¸ô®|¡C
ÅýUser ¿ï¨úÀɮק¨©ÎÀɮסAµM«á¥i¥H½Æ»s¸ÓÀÉ®× ©Î Àɮק¨ªº ¸ô®| or ÀɦW¡C

¿ï¦n«á¸ô®|orÀɦW~  ·|¦Û°Ê½Æ»s¨ì¬Y¦s®æ¤W¡C

ÁÂÁ¦U¦ì¼F®`ªº¤j¤j~!!

¥Ø«e§Ú¥uª¾¹D¥i¥H¥´¶}µøµ¡¦Ó¤w  ºô¸ô¤W¬d¨ìªº¬O³o¼Ë  

Fname = Application.GetOpenFilename
ÁÙ¦³À˵øÀÉ®× ¥ÎMsgBoxÅã¥Ü
Dim NextFile As String
   Dim AllFiles As String

   AllFiles = ""
   NextFile = Dir("C:\", 0)

   While NextFile  <> ""
      AllFiles = AllFiles & Chr(13) &  NextFile
      NextFile  = Dir
   Wend

   MsgBox AllFiles

ÁÂÁ¦U¦ì¤j¤j~

¦^´_ 12# boblovejoyce
§YEXCEL¦b­þ¨à? ¹w³]¶}±Òªº¦ì¸m~ ¦PEXCEL¦ì¸m
  1. Sub Ex()
  2.     With ActiveWorkbook
  3.         ChDrive .Path
  4.         ChDir .Path
  5.     End With
  6. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 8# GBKEE

ª¦¤å­è¦nª¦¨ì³o­Ó¶µ¦¸~
½Ð°ÝGBKEE¤j¤j~~~
¦pªGEXCELªºÀÉ®× ©M­nŪ¨ú¶i¨ÓÀÉ®× ­Y³£·|¦b¦P¤@­Ó¸ê®Æ§¨¤º
¦³¾÷·|¿ï¨úÀÉ®×±o®É­Ô,´N¤w¸g¬O«ü©w³o­Ó¸ê®Æ§¨¤F~~??
§YEXCEL¦b­þ¨à? ¹w³]¶}±Òªº¦ì¸m~ ¦PEXCEL¦ì¸m:)

TOP

¾Ç¨ì¤F¡A·PÁ¦U¦ì¤j¤j¡C
­É¿ú¤£ÁÙ¡A¤~¬O¤ý¹D

TOP

OK~~·PÁÂ~~

TOP

Shell "explorer D:\¤å¥óÀÉ\ªþÄÝÀÉ®×"

TOP

¦^´_ 7# ¨Ø¥È
Private Sub CommandButton1_Click()
    With Application.FileDialog(msoFileDialogOpen)
        .InitialFileName = "D\¤å¥óÀÉ\ªþÄÝÀÉ®×"
        .AllowMultiSelect = True
        .Show
        For i = 1 To .SelectedItems.Count
            Cells(i, 1) = .SelectedItems(i)
            MsgBox .SelectedItems(i)
        Next
    End With
End Sub

TOP

¤j®v:
     ¦pªG§Ú­n¶}±Òªº¸ô®|¬O: D\¤å¥óÀÉ\ªþÄÝÀÉ®×
½Ð°Ýµ{¦¡­n«ç»ò­×§ï?

TOP

¦^´_ 2# Hsieh


    ÁÂÁª©¥Dªº«ü¾É!!

TOP

¦^´_ 4# luhpro


    ÁÂÁ¤j¤j~ §Ú§¹¥þ©ú¥Õ¤F!!

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤Hªº§Ö¼Ö¡D¤£¬O¦]¬°¥L¾Ö¦³±o¦h¡A¦Ó¬O¦]¬°¥L­p¸û±o¤Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD