Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
will this work for you?
Option Explicit Sub display_sheets() Dim i As Long Dim ws As Worksheet For i = 1 To 3 For Each ws In ThisWorkbook.Worksheets ws.Activate Application.Wait (Now + TimeValue("0:00:03")) Next Next ActiveWorkbook.Close savechanges:=False End Sub -- Gary wrote in message ... I have a spread sheet that I want to control from a userform. When the person hits a botton in a userform it opens the spread sheet, goes to sheet 1 for 2 seconds, then sheet 2 for 2 seconds, sheet 3 for 2 seconds, sheet 4 for 2 seconds and sheet 5 for 2 seconds. I would like it to loop 3 times and then close the spread sheet. Please help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pause between copies of Excel sheets while printing | Excel Discussion (Misc queries) | |||
Stop / Pause a Macro using Pause button | Excel Programming | |||
pause | Excel Programming | |||
Pause | Excel Programming | |||
Pause? | Excel Programming |