| ¥»©«³Ì«á¥Ñ starry1314 ©ó 2015-6-25 15:01 ½s¿è 
 ·Q½Ð°Ý¦p¦óÅý¿ï¨ú¨ìªºÀɮר̧ǰõ¦æ§¹§Únªº¥¨¶°¦bÃö³¬Àɮ׫á Ä~Äò°õ¦æ¤U¤@ÓÀɮ׫½Æ¨ìµLÀɮ׬°¤î©O?
 
 ¸Ñ¨M¤è®×
 ¶}±Ò©Ò¦³¿ï¾ÜªºÀɮ׽ƻs¥N½X Sub ¶}±Ò¦hÓÀÉ®×()
   Dim filenames As Variant
   ' set the array to a variable and the True is for multi-select
   filenames = Application.GetOpenFilename(, , , , True)
      counter = 1
      ' ¿ï¾ÜÁ`¦@n¶}±ÒªºÀÉ®×
      While counter <= UBound(filenames)
         '¥´¶}¿ï©wªº¤å¥ó,¥B¤£§ó·s³sµ²
         Workbooks.Open filenames(counter), UpdateLinks:=0
         
         '¥¨¶°
         
         'Ãö³¬¿ï¾ÜªºÀÉ®×
         ActiveWorkbook.Close True
         
         
         ' ®ø®§®Ø Åã¥Ü¤å¥ó¦W
         'MsgBox filenames(counter)
         '¶}±Ò·sÀÉ®×
         counter = counter + 1
      Wend
   End Sub
¦¹µ{¦¡¬°Åª¨úÀɮ׸ô®|,¨Ã¦bH1¨Ì§Ç©¹¤U¶K¤W¸ô®|½Æ»s¥N½X   Sub ¶}±Ò¦hÓÀÉ®×()
   Dim filenames As Variant
   ' set the array to a variable and the True is for multi-select
   filenames = Application.GetOpenFilename(, , , , True)
      counter = 1
      ' ¿ï¾ÜÁ`¦@n¶}±ÒªºÀÉ®×
      While counter <= UBound(filenames)
         '¥´¶}¿ï©wªº¤å¥ó
         Workbooks.Open filenames(counter)
         ' ®ø®§®Ø Åã¥Ü¤å¥ó¦W
         'MsgBox filenames(counter)
         '¶}±Ò·sÀÉ®×
         counter = counter + 1
      Wend
   End Sub
½Æ»s¥N½XSub ¶}±ÒÀÉ®×_Click()
    With Application.FileDialog(msoFileDialogOpen)
        .InitialFileName = "\\boss-pc\¤½¥ÎºÏ°Ï"
        .AllowMultiSelect = True
        .Show
        For i = 1 To .SelectedItems.Count
            Cells(i, 7) = .SelectedItems(i) 'i=¦C 7=Äæ
            'MsgBox .SelectedItems(i) 'Ū¨ú¨ìªº¸ê°T
        Next
    End With
End Sub
 |