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

GetOpenFilenameªº»yªk°ÝÃD

¦^´_ 1# doom834
UBound(FO)-> FO ¥²¶·¬O°}¦C ,  GetOpenFilename ¤èªk  ¥u¶Ç¦^¿ï¨úÀɮצWºÙ ¨S¦³¶Ç¦^°}¦C

¸Õ¸Õ¬Ý
  1. Sub Ex()
  2. Dim File_qty As Integer, SN_1 As String, i As Integer
  3. File_qty = Sheets(SN_1).Cells(2, 6)
  4. With Application.FileDialog(msoFileDialogOpen)
  5. .InitialFileName = "d:\" '«ü©w¶}±Òªº¸ô®|
  6. .Filters.Clear
  7. .Filters.Add "Excel File", "*.csv; *.txt; *.xls", 1
  8. .Filters.Add "*.*", "*.*", 2
  9. .FilterIndex = 1
  10. .Show
  11. If .SelectedItems.Count > File_qty Then
  12. MsgBox ("¸ü¤JÀɮפj©ó" & File_qty & "­Ó¤w¶W¥Xµ{¦¡¤W­­¡A½Ð­«·s¿ï¾ÜÀÉ®×»P½T»{¸ü¤J¼Æ¶q¬O§_¤p©ó©Îµ¥©ó" & File_qty & "­Ó¡AÁÂÁÂ!!")
  13. Sheets(SN_1).Select
  14. Else
  15. For i = 1 To .SelectedItems.Count
  16. MsgBox .SelectedItems(1)
  17. Next
  18. End If
  19. End With
  20. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ­×¦æ­nô½t­×¤ß¡AÂǨƽm¤ß¡AÀH³B¾i¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD