Writing Variable to Cell

M

MAS

Hi,

I have some code as follows;

************************************
Public RunWhen As Double
Public Const cRunIntervalSeconds = 600 '10 mins
Public Const cRunWhat = "Close_Sub"

Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime earliesttime:=RunWhen, procedure:=cRunWhat,
Schedule:=True
End Sub
*************************************

This works fine, but I want to be able to show add the time of 'RunWhen' to
cell C3. How do I do it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top