LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Goes to A1 on all Worksheets when Opening Q

I got this code from this board which opens my worksheet up at A1 on a
certain worksheet. My problem is that it goes in to Debug if any of the
worksheets within the file are hidden. Is there a workaround?

Thanks

Private Sub Workbook_Open()
Application.ScreenUpdating = False
Dim sh As Worksheet
For Each sh In ThisWorkbook.Worksheets
sh.Select
Application.Goto Reference:=sh.Range("a1"), Scroll:=True
Next sh
ThisWorkbook.Sheets("BOIM").Select
Application.ScreenUpdating = True

End Sub


 
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
Opening Worksheets doss04 Excel Discussion (Misc queries) 2 October 20th 08 07:21 AM
Opening worksheets Fargo Excel Discussion (Misc queries) 1 August 7th 07 04:30 PM
Opening New Worksheets In Excel 07 Jim Lally Setting up and Configuration of Excel 1 May 21st 07 05:13 AM
Opening Multiple Worksheets JesseH Excel Worksheet Functions 2 June 1st 05 06:02 PM
How do you print all worksheets in a file without opening the fil. timmtamm Excel Worksheet Functions 1 January 4th 05 11:50 AM


All times are GMT +1. The time now is 10:14 PM.

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"