LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Files properties

Hi Marijan

Run this macro on a empty sheet

Sub test()
rw = 1
For Each p In ActiveWorkbook.BuiltinDocumentProperties
On Error Resume Next
Cells(rw, 1).Value = p.Name
Cells(rw, 2).Value = p.Value
rw = rw + 1
On Error GoTo 0
Next
End Sub


Or this

With ActiveWorkbook.BuiltinDocumentProperties
Cells(1, 1).Value = .Item("Last save time")
Cells(2, 1).Value = .Item("Subject")
Cells(3, 1).Value = .Item("Manager")
Cells(4, 1).Value = .Item("Author")
Cells(5, 1).Value = .Item("Keywords")
Cells(6, 1).Value = .Item("Comments")
Cells(7, 1).Value = .Item("Company")
End With



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Marijan Glavac" wrote in message ...
Hi,

how to get files properties through code ( when is file created,modified...)
?

Thanks in advance..
Marijan




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using properties Mrs. Smith Excel Discussion (Misc queries) 1 June 4th 07 05:37 PM
Comment Box in Properties of Excel files [email protected] Excel Discussion (Misc queries) 0 July 27th 06 02:38 AM
check properties of 400 Excel files Mark Excel Discussion (Misc queries) 2 June 8th 05 02:58 PM
Files properties Pete McCosh Excel Programming 0 June 8th 04 11:27 AM
Accessing document properties of non-Microsoft product files Kevin Beckham Excel Programming 5 November 5th 03 01:36 AM


All times are GMT +1. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"