LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Hyperlinks and opening any sheet a workbook

If you want Sheet2 to be the activesheet when the workbook is opened, you
can put code to do this in the Workbook_Open event.

Private Sub Workbook_Open()
thisworkbook.Worksheets("sheet2").Activate
End sub

This must be placed in the ThisWorkbook module of the project

if the user doesn't disable macros on opening or if macros are not disabled
by security settings, then this will activate sheet2 on opening.

See Chip Pearson's page for general information on using events
http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Angelo Battistoni" wrote in message
...
Is there any way to open a sheet in a workbook through a hyperlink. Eg. if
there are 3 sheet in a workbook and it was saved with the first sheet
displayed can you use a hyperlink to open sheet 2.

Thanks in advance




 
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
only the last sheet tab appears when opening workbook Aline Yiu Excel Discussion (Misc queries) 4 October 4th 06 04:52 PM
Opening workbook at sheet required. DB. New Users to Excel 8 June 26th 06 10:06 PM
Opening a workbook to a chosen sheet? renderingsanity Excel Discussion (Misc queries) 1 March 29th 06 02:17 PM
Opening a workbook at a specific sheet Nirmal Singh Excel Programming 9 September 27th 04 12:19 PM
autorun code when opening sheet (not workbook) Steve Mutambo Excel Programming 3 April 2nd 04 04:46 PM


All times are GMT +1. The time now is 11:09 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"