View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
WA WA is offline
external usenet poster
 
Posts: 37
Default Execute VB code depending on time of day

Hi,

I have the clock (24 format) in a spreadsheet. When a user clicks a button,
I would like to see the procedure executed only if it is after a certain
time. ie. if it is after 17:00, then the function will run, otherwise a msg
will state that it is too early.

I've looked at the OnTime code, but it will not serve my purpose.
Any ideas would be greatly appreciated.

Thanks,

WA