Properties: LastSaved vs. SaveDate

User avatar
ErikJan
BronzeLounger
Posts: 1258
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Properties: LastSaved vs. SaveDate

Post by ErikJan »

(Office 2010) I see there is an {INFO SaveDate} field and also a {DOCPROPERTY LastSaved} one.

The first one works, the second one does not and only gives a date in the past. What's the difference between the two?

User avatar
HansV
Administrator
Posts: 78596
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Properties: LastSaved vs. SaveDate

Post by HansV »

I get an error if I try to refer to LastSaved. There is a built-in document property LastSavedTime.

{ DOCPROPERTY LastSavedTime } returns the same result as { INFO SaveDate } for me:
S100.png
S101.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
ErikJan
BronzeLounger
Posts: 1258
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Properties: LastSaved vs. SaveDate

Post by ErikJan »

LastSavedTime works here too but I do have a LastSaved as well...

Also: what's the difference between SaveDate and LastSaved(Time) if they outcome is the same values?
2015-06-23 12_21_15-Field.png
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78596
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Properties: LastSaved vs. SaveDate

Post by HansV »

LastSaved must be a custom (user-defined) property. Unless the author has created VBA code to update it automatically, there is no guarantee that the value will be meaningful.
Best wishes,
Hans