- ©«¤l
- 36
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 50
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-20
- ³Ì«áµn¿ý
- 2015-3-6
|
¦^´_ 6# yangjie
yangjie¤j¡G¥H¤Upºâ¹Ï¤ù¼Æ¶qªº¼gªk¬O§Ú¥ý¦bºô¸ô¤W§ä¨ìªº¤èªk¡uFiles.Count¡v
¦ý¤£ª¾¹D¬°¤°»ò¼Æ¶qµ²ªGÁ`¬O·|¦h¥X1¡A©Ò¥H§Ú¥²¶·n¦©°£1¤~·|²Å¦X¹ê»Ú¼Æ¥Ø
§Ú¤]¦³½T»{¹L¨Ã¨S¦³ÁôÂÃÀÉ¡A¯à§_ª¾¹D¬°¦ó¦³³oºØ±¡ªp¡H
ps¡Gyangjie¤j §Aªº¤èªk½T¹ê¥i¥H ·PÁ±оÉ
¥t¥~¦A½Ð±Ðyangjie¤j¡A§A¦b¨Ï¥ÎFor Each ____ In ____ªº¼gªk
¬O«ç¼Ëªº«ä¦Ò¤è¦¡¡A¦b¤°»ò±¡¹Ò¤U·|¦Ò¼{¨Ï¥Î¨ì³oºØ¤èªk
³o¼gªk¬Ý§O¤H¼g³£¬O¥i¥H²z¸Ñ¡A¦ý¤£ª¾¹D«ç»ò¥Îªº¥X¨Ó
³Â·Ð«ü±Ð
----------------------------------------------------------------------------------------------------
Sub photoConv()
Dim myFSO As New FileSystemObject
Dim myPath As String
Dim myPhoto As String, countPhoto As String
myPath = ThisWorkbook.Path
myPhoto = Dir(myPath & "\" & "ì©l¬Û¤ù" & "\" & "*.jpg")
countPhoto = myFSO.GetFolder(myPath & "\" & "ì©l¬Û¤ù").Files.Count - 1
If myPhoto <> "" Then
MsgBox (countPhoto)
Else
MsgBox "no photo"
End If
End Sub |
|