Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro which simply switches between two
worksheets, but I would like to pause the macro so that it shows one worksheet for say 2 minutes and then switches to the next worksheet for say 2 minutes and then starts again. I know how to loop - it is just the "pausing" that I cannot work out. Does anyone have any ideas? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Application.Wait "00:00:00"will continue the macro at 00:00:00
"Gary" schreef in bericht ... I have a macro which simply switches between two worksheets, but I would like to pause the macro so that it shows one worksheet for say 2 minutes and then switches to the next worksheet for say 2 minutes and then starts again. I know how to loop - it is just the "pausing" that I cannot work out. Does anyone have any ideas? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
Do While True For i = 1 to 2 Sheets(i).Select Application.Wait Now + TimeSerial(0, 2, 0) Next i Loop In article , "Gary" wrote: I have a macro which simply switches between two worksheets, but I would like to pause the macro so that it shows one worksheet for say 2 minutes and then switches to the next worksheet for say 2 minutes and then starts again. I know how to loop - it is just the "pausing" that I cannot work out. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Wait for 2 minutes :-
Application.Wait Now + TimeValue("00:02:00" -- Message posted from http://www.ExcelForum.com |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You didn't like all the suggestions you got yesterday in .misc?
http://groups.google.com/groups?thre...BADC%40msn.com If you're looking for old posts, you can use google (maybe a few hours behind) to search for stuff you've posted (and find the replies, too) http://groups.google.com/advanced_group_search http://groups.google.com/advanced_gr...Excel*&num=100 Ron de Bruin has an excel addin that you may like: http://www.rondebruin.nl/Google.htm Gary wrote: I have a macro which simply switches between two worksheets, but I would like to pause the macro so that it shows one worksheet for say 2 minutes and then switches to the next worksheet for say 2 minutes and then starts again. I know how to loop - it is just the "pausing" that I cannot work out. Does anyone have any ideas? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Status bar (or similar) to appear whilst running a long macro | Excel Discussion (Misc queries) | |||
How to Mute/Enable Windows Sounds whilst running VBA code | Excel Programming | |||
How to Mute/Enable Windows Sounds whilst running VBA code | Excel Programming | |||
Programing a macro to pause while running for data entry | Excel Programming | |||
How to Pause or Stop a running Macro | Excel Programming |