Hi Manjunath,

Please find below the code for auto run after 15 min with msgbox, for
testing propose change timevalue and try..

placed inside thisworkbook

Private Sub Workbook_Open()
Call TimeUp
End Sub

and placed inside module

Sub UpdateTime()
Application.OnTime Now + TimeValue("00:15:00"), "TimeUp"
MsgBox "Hello time Over"
End Sub

Sub TimeUp()

UpdateTime
End Sub


.........................

Enjoy
Team XLS



On Fri, Apr 5, 2013 at 7:05 PM, Manjunath Narayanappa <
manjunath.narayana...@aon.co.uk> wrote:

>  Dear Experts,
>
>
>
>
>
> I wanna create a spreadsheet, every 15  or 20 minutes it should pop up
> with msgbox.
>
> Is there anyway that we can create for every 15 or 20 minutes it should
> pop up with msgbox but without running macros evry 15 or 20 minutes
>
>
>
> For example : I have created for Good morning , Afternoon , Evening & night
>
>
>
> Sub GreetMe1()
>
>     If Time < 0.5 Then
>
>         MsgBox "Good Morning"
>
>     ElseIf Time > 0.5 And Time < 0.75 Then
>
>         MsgBox "Good Afternoon"
>
>     ElseIf Time > 0.75 And Time < 0.833333 Then
>
>          MsgBox "Good Evening"
>
>     Else
>
>         MsgBox "Good Night"
>
>     End If
>
>
>
> End Sub
>
>
>
>
>
>
>
> Thanks
>
> Manjunath
>
> ------------------------------
>
> PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS E-MAIL
>
>
>
> For Aon’s standard conditions associated with this e-mail please visit
> http://www.aon.com/uk/en/email-footer/aon-uk-limited.jsp
>
> Aon UK Limited
>
> Registered Office: 8 Devonshire Square, London EC2M 4PL
>
> Registered in London No. 210725 . VAT Registration No. 480 8401 48
>
>
>
> Aon UK Limited is authorised and regulated by the Financial Services
> Authority in respect of insurance mediation activities only.
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to