|
楼主 |
发表于 2023-6-22 06:20
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
谢谢回复.
- Sub Test1()
- Dim oShell As Shell
- Dim oDir, oFileName
- Dim oFolder, oFile
-
- oDir = "F:"
- oFileName = "2.jpg"
- Set oShell = New Shell
- Set oFolder = oShell.Namespace(oDir)
- Set oFile = oFolder.ParseName(oFileName)
- For ii = 1 To 500
- Sheet3.Cells(ii + 3, 3) = oFolder.GetDetailsOf(oFile, ii)
- Sheet3.Cells(ii + 3, 1) = ii
- Next ii
- Stop
-
- End Sub
复制代码
1 2.73 MB
2 JPG 文件
3 2023/6/1 11:20
4 2023/6/21 7:48
5 2023/6/21 7:48
6 A
7
8
9 图像
10 Administrators
11 图片
12 ‎2023/‎6/‎1 ‏‎11:20
13
14
15
16
17
18
19 未分级
20 todayCam
- Private Sub deldeldel()
- Dim Sht As Worksheet
- Dim Fso As FileSystemObject
- Dim oFile As File
- Dim Rng As Range
- Set Rng = Selection
- Dim Img As WIA.ImageFile
- Set Img = New WIA.ImageFile
- Img.LoadFile Rng
- With Img
- Debug.Print .Width, .Height
- End With
- Set Fso = New FileSystemObject
- Set oFile = Fso.GetFile(Rng)
- With oFile
- Debug.Print .DateCreated, .DateLastAccessed, .DateLastModified
-
- End With
-
- End Sub
复制代码 |
|