Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Open at same sheet everytime

Hi,

I have a workbook with over 20 sheets used by multiple users. How
can I get Excel to open at an index page everytime (instead of
opening
on the last page that was saved)

Joel kindly gave me the following information
Private Sub App_WorkbookOpen(ByVal Wb As Workbook)
* * ThisWorkbook.Sheets("Sheet2").Activate
End Sub

I placed this in the Sheet2 and also in the 'This workbook' within VBA
and both did not work.

The name of my sheet is Help and I changed "Sheet2" to help - no joy.

What am I doing wrong - Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Open at same sheet everytime

hi
this will work better i think. a simplified version.

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

this is workbook code so it should be placed in the thisworkbook module.
it's also advisable to remove the code you placed in the sheet module.

Regards
FSt1

"Paul" wrote:

Hi,

I have a workbook with over 20 sheets used by multiple users. How
can I get Excel to open at an index page everytime (instead of
opening
on the last page that was saved)

Joel kindly gave me the following information
Private Sub App_WorkbookOpen(ByVal Wb As Workbook)
ThisWorkbook.Sheets("Sheet2").Activate
End Sub

I placed this in the Sheet2 and also in the 'This workbook' within VBA
and both did not work.

The name of my sheet is Help and I changed "Sheet2" to help - no joy.

What am I doing wrong - Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Open at same sheet everytime

On 3 Apr, 17:15, FSt1 wrote:
hi
this will work better i think. a simplified version.

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

this is workbook code so it should be placed in the thisworkbook module.
it's also advisable to remove the code you placed in the sheet module.

Regards
FSt1



"Paul" wrote:
Hi,


I have a workbook with over 20 sheets used by multiple users. How
can I get Excel to open at an index page everytime (instead of
opening
on the last page that was saved)


Joel kindly gave me the following information
Private Sub App_WorkbookOpen(ByVal Wb As Workbook)
* * ThisWorkbook.Sheets("Sheet2").Activate
End Sub


I placed this in the Sheet2 and also in the 'This workbook' within VBA
and both did not work.


The name of my sheet is Help and I changed "Sheet2" to help - no joy.


What am I doing wrong - Thanks- Hide quoted text -


- Show quoted text -


Thank you very much - working great
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
EULA keeps popping up everytime I open EXCEL sfbayramfan Setting up and Configuration of Excel 1 May 7th 08 11:02 PM
how can I open an excel file everytime on certain sheet? Inas Excel Discussion (Misc queries) 1 June 7th 07 12:28 PM
Keep original header date everytime I open, it always changes. Momma Bear Excel Discussion (Misc queries) 1 June 6th 07 03:45 PM
How do I add one to a number everytime I open the same workbook Greg Excel Worksheet Functions 2 January 2nd 06 01:31 PM
How do I set up an excel doc. to open on the same tab everytime Dana Stricker Excel Discussion (Misc queries) 2 November 17th 05 07:54 PM


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

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"