Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default VB code to make Excel open in a specific worksheet

Hello,

Just a quick one. Does anyone know what the VB code is to make Excel
open a workbook with a specific worksheet selected?


thanks,

Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default VB code to make Excel open in a specific worksheet

Hi
you could put the following code in the workbook_open event of this
file:

sub workbook_open()
me.worksheets("sheet2").activate
end sub

--
Regards
Frank Kabel
Frankfurt, Germany

"OscarC" schrieb im Newsbeitrag
...
Hello,

Just a quick one. Does anyone know what the VB code is to make Excel
open a workbook with a specific worksheet selected?


thanks,

Michael


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VB code to make Excel open in a specific worksheet

Michael,

In the target workbook, add this code to the ThisWorkbook code module

Private Sub Workbook_Open()
Thisworkbook.Worksheets("Sheet3").Activate
End Sub

change the Sheet3 to your name

--

HTH

RP
(remove nothere from the email address if mailing direct)


"OscarC" wrote in message
...
Hello,

Just a quick one. Does anyone know what the VB code is to make Excel
open a workbook with a specific worksheet selected?


thanks,

Michael



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
How do I make Excel display a specific worksheet? Bowtie63 Excel Discussion (Misc queries) 3 September 27th 07 09:40 PM
Is there a way to open an excel file to a specific worksheet? Nicholas Excel Discussion (Misc queries) 1 December 5th 06 10:29 PM
I need a shortcut to make a excel file open to a specific sheet EAHRENS Excel Discussion (Misc queries) 9 December 6th 05 06:51 PM
How do you open a specific worksheet using an Excel Driver? Murphy Excel Programming 0 May 28th 04 11:12 PM
VBA code to open a specific worksheet MohK Excel Programming 2 October 29th 03 06:02 PM


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