Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
In the Workbook_Open() event handler I want to check the last write date time of the workbook. But I always get the current date time. I suspect this event handler occurs after the workbok has been opened. Any idea to get the last write date time of a workbook when opening it Thank Yong |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Yong
Try ThisWorkbook.BuiltinDocumentProperties("Last Save Time") HTH. Best wishes Harald "Yong" skrev i melding ... Hi In the Workbook_Open() event handler I want to check the last write date time of the workbook. But I always get the current date time. I suspect this event handler occurs after the workbok has been opened. Any idea to get the last write date time of a workbook when opening it? Thanks Yong |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks a lot, Harald
C# version is Microsoft.Office.Core.DocumentProperty prp; Microsoft.Office.Core.DocumentProperties prps; prps = (Office.DocumentProperties)Wb.BuiltinDocumentPrope rties prp = prps["Last Save Time"] DateTime workbookDT = (DateTime)prp.Value Yong |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
use date formula to update workbook in real time | Excel Worksheet Functions | |||
put date and time in cells after entry made in shared workbook | Excel Worksheet Functions | |||
How do I get the default workbook settings to print the date/time/ | Excel Discussion (Misc queries) | |||
Calculating days & time left from start date/time to end date/time | Excel Worksheet Functions | |||
Save Workbook as Current Date/Time | Excel Discussion (Misc queries) |