Syntax

expression.LastRefreshed

expression A variable that represents a SharedWorkspace object.

Remarks

The LastRefreshed property raises an error if the 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.

Visual Basic for Applications
 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 
last last refreshed lastrefreshed lastrefreshed property ofv

See also: