R
red6000
Hi, I;m using the following code to display the modified date of the active
document:
Dim dlvVersions As Office.DocumentLibraryVersions
Dim dlvVersion As Office.DocumentLibraryVersion
Dim strVersionInfo As String
Set dlvVersions = ActiveDocument.DocumentLibraryVersions
If dlvVersions.IsVersioningEnabled Then
strVersionInfo = dlvVersion.Modified
End If
MsgBox (strVersionInfo)
Set dlvVersion = Nothing
Set dlvVersions = Nothing
But it's debugging at:
Set dlvVersions = ActiveDocument.DocumentLibraryVersions
saying that 'No versions exist for this file'
Any ideas where I'm going wrong?
thanks.
document:
Dim dlvVersions As Office.DocumentLibraryVersions
Dim dlvVersion As Office.DocumentLibraryVersion
Dim strVersionInfo As String
Set dlvVersions = ActiveDocument.DocumentLibraryVersions
If dlvVersions.IsVersioningEnabled Then
strVersionInfo = dlvVersion.Modified
End If
MsgBox (strVersionInfo)
Set dlvVersion = Nothing
Set dlvVersions = Nothing
But it's debugging at:
Set dlvVersions = ActiveDocument.DocumentLibraryVersions
saying that 'No versions exist for this file'
Any ideas where I'm going wrong?
thanks.