LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Visible Screen


Tom Ogilvy wrote:
If your still having problems, try this

Private Sub Workbook_Open()
Dim sh as Worksheet, sh1 as Worksheet
Application.ScreenUpdating = False
set sh = Activesheet
for each sh1 in thisworkbook.Worksheets
sh1.Activate
Application.Goto sh1.Range("A1"), True
Next
sh.Activate
Application.ScreenUpdating = True
End Sub

I assume you don't have filters applied or freezepanes or something else
that could affect this.

--
Regards,
Tom Ogilvy


"AussieDave" wrote in message
ups.com...
JLGWhiz wrote:
If a one or two second delay between iterations is what you are looking
for
try this.

Sub WaitTime()
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
sitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait sitTime
End Sub

Add the sub to your code module that runs the opening macro and insert
"WaitTime" without the quote marks into the loop after the "Select"
command.
You can adjust the amount of time you want the delay interval by changing
the
+ 1 on newSecond to another whole integer in one second increments up to
59.
Same with minutes and hours.

I use this in several Do ... Loop routines and it works great for visual
effect.

"AussieDave" wrote:


AussieDave wrote:
Tom Ogilvy wrote:
Why can't you use Application.ScreenUpdating = False

--
Regards,
Tom Ogilvy


"AussieDave" wrote:

Hi all, I have a workbook with an auto_open macro which cycles
through
all worksheets, selecting "A1" so that each of the 30+ sheets
displays
in the top left position when opened. Works perfectly except for
the
whirring display to the user, as I cannot use
"Application.ScreenUpdating = False" to suppress the display.
Any help
appreciated, Thanks, Dave


Hi Tom, I tried it and, although the cursor was moved to A1, the
displayed part of the sheet remained as it was positioned prior to
moving the cursor.
BTW, I'm using Range("A1").Select to move the cursor - what would be
the preferred option here?


Thanks JGLWhizz,
Nice little routine that I've put into my library of "Useful Subs"!!
However, I'm not trying to delay anything - rather, I'm trying to hide
my "housekeeping". Unfortunately, Tom's suggestion still leaves the
visible screen where it was at the time of opening - I need it
re-positioning so that Cell A1 is displayed at top-left of screen.
Thanks, Dave

THAT's the one!!!! Thanks a million Tom - I learn so much from the
learned responses on these pages. Dave

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Visible and Screen Dave Excel Discussion (Misc queries) 0 January 4th 08 02:32 PM
panes frozen, set visible part of screen [email protected] Excel Programming 2 February 5th 06 03:06 AM
color not visible on screen TJTOMCIU Setting up and Configuration of Excel 1 January 2nd 05 05:59 PM
how to keep the button visible always in the screen, thanks Kortrijker Excel Programming 5 March 4th 04 10:54 AM
arranging charts and visible screen size ThatFella[_4_] Excel Programming 1 September 8th 03 11:57 PM


All times are GMT +1. The time now is 06:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"