GetLastRunDateTime

Returns the date and time of the last run of the macro.

Declarations:

VC++

long GetLastRunDateTime (_bstr_t pFileName, BSTR * pLastRunDateTime );

VISUAL BASIC:

GetLastRunDateTime (ByVal pFileName As String, ByRef pLastRunDateTime As String) As Long

Parameters:

Return Value:

Returns 1 if there is any kind of failure, or 0 if successful.