Table of contents
TOC
Collapse the table of content
Expand the table of content

SharedWorkspace.LastRefreshed Property (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets the date and time when the Refresh method was most recently called. Read-only.

Note Beginning with Microsoft Office 2010, this object or member has been deprecated and should not be used.

Syntax

expression. LastRefreshed

expression A variable that represents a SharedWorkspace object.

Remarks

The LastRefreshed property raises an error if the Refresh method has never been called.

Example

The following example refreshes the shared workspace if it has not been refreshed in the last 3 minutes. The example also handles the error condition where the workspace has not yet been refreshed.

    On Error GoTo err_NeverRefreshed 
    If DateDiff("s", ActiveWorkbook.SharedWorkspace.LastRefreshed, Now) > 180 Then 
        ActiveWorkbook.SharedWorkspace.Refresh 
    End If 
    Exit Sub 

err_NeverRefreshed: 
          ActiveWorkbook.SharedWorkspace.Refresh 

See also

Concepts

SharedWorkspace Object

Other resources

SharedWorkspace Object Members

© 2018 Microsoft