Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ThaiNB
 
Posts: n/a
Default How to open a workbook with a specific worksheet displayed by defa

When I open a workbook, it always shows a specific worksheet which I don't
want to work with. I have to click on the worksheet I want everytime I open
this workbook. How can I open it and have it shows the worksheet I want by
default?

Thanx in advance.
  #2   Report Post  
Rob van Gelder
 
Posts: n/a
Default

From the Tools menu, select Macro | Visual Basic Editor
From the Project window, doubleclick ThisWorkbook

Assuming Sheet2 is the worksheet you want activated when the workbook opens.

Copy this code in:

Private Sub Workbook_Open()
Worksheets("Sheet2").Activate
End Sub

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"ThaiNB" wrote in message
...
When I open a workbook, it always shows a specific worksheet which I don't
want to work with. I have to click on the worksheet I want everytime I
open
this workbook. How can I open it and have it shows the worksheet I want by
default?

Thanx in advance.



  #3   Report Post  
ThaiNB
 
Posts: n/a
Default

Thanks a million!

Upon following your procedure, I found something. This workbook was shared
among several users (though, I was the only one opening it). And I think that
was the main reason it didn't let me save the current worksheet state. After
I unshared the workbook, I could save it with the current worksheet state
(means - when I opened it again, it showed the last worksheet I opened last
time before I saved the file). BTW, this is not true on my colleage's machine
(working on the same file!!). I don't want any furthur remedy, just to share
what'd happened.

Thanx again! :)

"Rob van Gelder" เขียน:

From the Tools menu, select Macro | Visual Basic Editor
From the Project window, doubleclick ThisWorkbook

Assuming Sheet2 is the worksheet you want activated when the workbook opens.

Copy this code in:

Private Sub Workbook_Open()
Worksheets("Sheet2").Activate
End Sub

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"ThaiNB" wrote in message
...
When I open a workbook, it always shows a specific worksheet which I don't
want to work with. I have to click on the worksheet I want everytime I
open
this workbook. How can I open it and have it shows the worksheet I want by
default?

Thanx in advance.




Reply
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
Hyperlink to specific worksheet in Excel Glenn Mulno Links and Linking in Excel 2 February 7th 05 06:01 PM
Can't open workbook (in Excel 2000) gcotterl Excel Discussion (Misc queries) 2 January 23rd 05 12:42 AM
copy COLUMN from 1 worksheet to another (in a different workbook) DavidB Excel Discussion (Misc queries) 3 January 15th 05 02:47 PM
Stubborn toolbars in Excel 007 Excel Discussion (Misc queries) 9 December 11th 04 02:02 PM
How do I get my personal macro worksheet to open whenever I open . Claudia_R Excel Discussion (Misc queries) 3 December 9th 04 11:59 PM


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

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

About Us

"It's about Microsoft Excel"