- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2013
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2019-4-13
- ³Ì«áµn¿ý
- 2021-10-15
|
¥»©«³Ì«á¥Ñ mybubble9987 ©ó 2019-4-26 11:14 ½s¿è
test01.rar (40.02 KB)
¥i¯à§Úªº°ÝÃD¤ÓÃøÀ´~©Ò¥H³£¨S¦³¤HÄ@·N¦^~~~
µy·L§ï¨}¤§«á~¦³°µ¥X¬Û¦P¥\¯àªº¥Îªk!!!!µ¹¤j®a°Ñ¦Ò!!!!
¦ý¬O¥Ø«e~ÁÙ¹J¨ì¤@Ó°ÝÃD~~~´N¬O¤£ª¾¹Dn«ç»ò§ï±¼~excel¤ºªº°ÝÃD~
Private Sub loadÀɦW()
Dim P As String
P = ThisWorkbook.Path & "\TEST01\"
ActiveSheet.UsedRange.Offset(1).Clear³o¦æn«ç»ò§ï~¤~¤£·|¥þ³¡ªºªí®æ¤ºªºªF¦è³£³Q§R±¼
Get_Picture P
End Sub
Private Sub Get_Picture(ByVal P As String)
Dim Fs, F As Variant
Set Fs = CreateObject("Scripting.FileSystemObject").GETFolder(P)
With ActiveSheet
For Each F In Fs.Files
If F Like "*.jpg" Then '«ü©w°ÆÀɦW
.Cells(Application.CountA(.[F:F]) + 1, "F") = F.Name
End If
Next
End With
For Each F In Fs.SubFolders
On Error Resume Next
Get_Picture F
Next
End Sub |
|