ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Question on "GetFile" command (https://www.excelbanter.com/excel-programming/278623-question-getfile-command.html)

Raad

Question on "GetFile" command
 
How do I access the "Dimesions" attribute of photo files
(which Windows Explorer displays under folder details)?

For example, I can get file size data using this code:

Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(FPath & "\" & FN(I))
MyFileSize = f.Size

FYI: the "Dimensions" attribute contains photo "width x
height" in pixels for standard photo file formats
like .jpg.

Thanks. Raad


All times are GMT +1. The time now is 12:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com