Running the following subroutine will cause Excel to run the subroutine called "openFile" after 3 hours.
Sub openInThreeHours()
dtScheduledTime = Now + TimeSerial(3,0,0)
Application.OnTime dtScheduledTime, "openFile"
End Sub
Hope that helps.
Ed.
Ne auderis delere orbem rigidum meum!
|