ªð¦^¦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 : ¡i¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD