ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ? ABTAIN FILE ATTRIBUTES WITH MACRO (https://www.excelbanter.com/excel-programming/287626-abtain-file-attributes-macro.html)

SUNIL

? ABTAIN FILE ATTRIBUTES WITH MACRO
 
Hi ,

is it possible to get an open excel file's attributes via macro e.g last
modified date or created date.

Thanks






david mcritchie

? ABTAIN FILE ATTRIBUTES WITH MACRO
 
See
http://www.mvps.org/dmcritchie/excel/properties.htm

and a similar page on Chip Pearson's site
http://www.cpearson.com/excel/topic.htm

Be aware that almost anything will cause the workbook to change
like volatile functions =TODAY()
and ask to be saved.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"SUNIL" wrote in message ...
Hi ,

is it possible to get an open excel file's attributes via macro e.g last
modified date or created date.

Thanks








Bob Phillips[_6_]

? ABTAIN FILE ATTRIBUTES WITH MACRO
 
Sunil,

Yes it is.

Look at BuiltinDocumentProperties in VBA Help.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"SUNIL" wrote in message
...
Hi ,

is it possible to get an open excel file's attributes via macro e.g last
modified date or created date.

Thanks









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

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