LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Dave

To open at a specific sheet you would need to save the workbook at that sheet
or activate that sheet upon opening the workbook.

Private Sub Workbook_Open
Sheets("MySheet").Activate
'if want a specific cell add
Range("G23").Select
End Sub

OR select when you save the workbook.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("MySheet").Activate
'if want a specific cell add
Range("G23").Select
End Sub

Copy/paste either of the above to the ThisWorkbook module.

With workbook open hit ALT + F11 to get to Visual Basic Editor. CRTL + r to
open Project Explorer.

Find your workbook/project and expand the MS Excel Objects.

Double-click on ThisWorkbook to open.

Paste the code in there.

ALT + Q to go back to Excel window.

Make sure the workbook Security is set to "Medium" under
ToolsOptionsSecurityMacro Security.

Save.


Gord Dibben Excel MVP

On Mon, 2 May 2005 11:39:01 -0700, "Dave"
wrote:

Is there a way to have a workbook open to a certain worksheet regardless of
which worksheet was active when the file was saved and clsoed?

Example:
Worksheets in workbook - data, budget, analysis, comments

Saved and closed with data worksheet active

On open have budget worksheet active

Thanks


 
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
Help - now really stuck! File transfer problem ohboy! Excel Discussion (Misc queries) 10 May 2nd 05 09:07 PM
How do I open my excel workbook? ajojoel Excel Discussion (Misc queries) 5 April 21st 05 07:41 AM
Importing Data from unopened Workbook into an open Workbook GrayesGhost Excel Discussion (Misc queries) 0 March 5th 05 11:25 PM
Why does Excel 2003 open on 3rd tab of workbook every time, not l. Excelfrustrated Excel Worksheet Functions 2 February 7th 05 08:15 PM
How to open a workbook with a specific worksheet displayed by defa ThaiNB New Users to Excel 2 January 21st 05 06:11 AM


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