View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ratheesh Ratheesh is offline
external usenet poster
 
Posts: 16
Default Application.Ontime for Private Sub(Proceedure) - ThisWorkbook*

Hi All,

Can anyone help me for the below query:
I want to pop up a msgbox in every 1 minute(executing the same
proceedure when workbook open, but it should continue after every
minute)

eg:

Private Sub msg_box()
msgbox "Please close the file"
Application.OnTime Now + TimeValue("00:00:0"), "msg_box" 'here I am
not able to use this proceedure
End Sub

In module we can use this, but without calling the proceedure from
module how can I run this from Private Sub itself?

Thanks a lot in advance
Ratheesh