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

[µo°Ý] ­pºâ¸ê®Æ§¨¤ºxlsÀÉ®×¼Æ

[µo°Ý] ­pºâ¸ê®Æ§¨¤ºxlsÀÉ®×¼Æ

¸Ó¦p¦ó­pºâ¸ê®Æ§¨¤º.xlsÀÉ®×¼Æ?
mypath = ActiveWorkbook.Path & "\"
myFile = "*.xls"
myname = Dir(mypath & myFile)
n = myname.Count

µ²ªG³Ì«á¤@¦æ¥X²{¿ù»~
¸Ó«ç»ò­×¥¿?

¦^´_ 1# acdx
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim mypath As String, myFile As String, myname As String, n As Integer
  4.     mypath = ActiveWorkbook.Path & "\"
  5.     myFile = "*.xls"
  6.     myname = Dir(mypath & myFile)
  7.     Do While myname <> ""
  8.         n = n + 1
  9.         myname = Dir
  10.     Loop
  11.     MsgBox n
  12. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD