Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Open file to specific tab

Is it possible to make a document open to a certain tab and a specific
cell? I manage a workbook and share it with a large number of people
and would like it to always open to the "Instruction" tab and cell A1.

Thank you.

Chip

  #2   Report Post  
Posted to microsoft.public.excel.misc
michaelberrier
 
Posts: n/a
Default Open file to specific tab

To make sure it always opens where you want, do these two things:
1. Open the VBA editor and put this in the ThisWorkBook code module:

Private Sub Workbook_Open()
Application.Run "InstructionSheet"
End Sub

2. Put this into a regular module:

Sub InstructionSheet()
Sheets("Instruction").Range("A1").Select
End Sub

That ought to do it.

  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Open file to specific tab


michaelberrier wrote:
To make sure it always opens where you want, do these two things:
1. Open the VBA editor and put this in the ThisWorkBook code module:

Private Sub Workbook_Open()
Application.Run "InstructionSheet"
End Sub

2. Put this into a regular module:

Sub InstructionSheet()
Sheets("Instruction").Range("A1").Select
End Sub

That ought to do it.


How about doing it without using VBA? I've never used it before. I
don't know if it's difficult to use or not, it's just that I'm not
familiar with it.

  #5   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Open file to specific tab

I'll give it a try. Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Open file to specific tab

Instead of using Application.run, I think I'd use:

Private Sub Workbook_Open()
Call InstructionSheet
End Sub

Or just drop the workbook_Open event and use Auto_Open:

Sub Auto_Open
with Sheets("Instruction")
.select
.Range("A1").Select
end with
End Sub

(If Instruction isn't the activesheet, then the code to select A1 will fail.)


michaelberrier wrote:

To make sure it always opens where you want, do these two things:
1. Open the VBA editor and put this in the ThisWorkBook code module:

Private Sub Workbook_Open()
Application.Run "InstructionSheet"
End Sub

2. Put this into a regular module:

Sub InstructionSheet()
Sheets("Instruction").Range("A1").Select
End Sub

That ought to do it.


--

Dave Peterson
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
Saved *.csv file gives SYLK file type warning upon Excel 2003 open Tom Excel Discussion (Misc queries) 5 March 19th 08 03:15 PM
Double-clicking .xls file opens Excel but doesn't open the file DG Excel Discussion (Misc queries) 4 January 6th 06 02:20 AM
cannot open excel file, please help!!! sunlite Excel Discussion (Misc queries) 0 September 5th 05 05:29 PM
Excel updating from XML file - file path specific? Sean Excel Discussion (Misc queries) 4 August 5th 05 12:56 PM
Macro to open specific File tamato43 Excel Discussion (Misc queries) 4 May 18th 05 09:42 PM


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