Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 177
Default OPEN A WORKBOOK TO A SPECIFIC WORKSHEET

I'm using Excel 2003 and trying to figure out how I can open to a specific
worksheet within the workbook. For example, I have tabs with Jan-Dec. I
want to set the workbook to open to the March worksheet automatically. Then
next month I want to change that setting so it will automatically open to the
April worksheet.

Is there a way to make Excel do that?

Thanks.

Todd
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default OPEN A WORKBOOK TO A SPECIFIC WORKSHEET

Option Explicit
Sub Auto_Open()
on error resume next
application.goto thisworkbook.worksheets(format(date,"mmm")).range( "a1"), _
scroll:=true
if err.number < 0 then
beep
err.clear
end if
on error goto 0
End Sub

This goes in a General module--not behind a worksheet, not behind ThisWorkbook.


Todd wrote:

I'm using Excel 2003 and trying to figure out how I can open to a specific
worksheet within the workbook. For example, I have tabs with Jan-Dec. I
want to set the workbook to open to the March worksheet automatically. Then
next month I want to change that setting so it will automatically open to the
April worksheet.

Is there a way to make Excel do that?

Thanks.

Todd


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default OPEN A WORKBOOK TO A SPECIFIC WORKSHEET

Yes. The workbook will open to the worksheet that was active when the
workbook was saved. So just save it with the desired worksheet active.

Tyro

"Todd" wrote in message
...
I'm using Excel 2003 and trying to figure out how I can open to a specific
worksheet within the workbook. For example, I have tabs with Jan-Dec. I
want to set the workbook to open to the March worksheet automatically.
Then
next month I want to change that setting so it will automatically open to
the
April worksheet.

Is there a way to make Excel do that?

Thanks.

Todd



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
Open Workbook to Specific Worksheet? Steven Hilgendorf Excel Discussion (Misc queries) 14 June 27th 07 12:22 AM
Open a new workbook with a specific name Jepane Excel Discussion (Misc queries) 3 June 21st 07 04:09 PM
How to open a workbook on a specific worksheet. kevincanuk Excel Worksheet Functions 2 September 26th 06 02:21 PM
Open workbook to specific worksheet Dave Excel Discussion (Misc queries) 2 May 2nd 05 08:44 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 01:49 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"