Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Seelcting specific sheet and cell on startup

I have an Excel workbook which has 5 worksheets. I would like to add some VBA
code so that whenever the workbook is opened, we automatically go to Sheet 3,
Cell F6. And in which category should I write this code - Sheet1, 2, 3, 4, or
5 or This Workbook?
Can anyone help please
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Seelcting specific sheet and cell on startup

In the workbook code area:

Private Sub Workbook_Open()
Sheets("Sheet3").Activate
Range("F3").Select
End Sub

--
Gary''s Student - gsnu200755


"Yendorian" wrote:

I have an Excel workbook which has 5 worksheets. I would like to add some VBA
code so that whenever the workbook is opened, we automatically go to Sheet 3,
Cell F6. And in which category should I write this code - Sheet1, 2, 3, 4, or
5 or This Workbook?
Can anyone help please

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,316
Default Seelcting specific sheet and cell on startup


Press Alt+F11 and insert the following code to the Workbook's Open event:

Private Sub Workbook_Open()

Sheets(3).Activate
Range("F6").Select

End Sub
--
Kevin Backmann


"Gary''s Student" wrote:

In the workbook code area:

Private Sub Workbook_Open()
Sheets("Sheet3").Activate
Range("F3").Select
End Sub

--
Gary''s Student - gsnu200755


"Yendorian" wrote:

I have an Excel workbook which has 5 worksheets. I would like to add some VBA
code so that whenever the workbook is opened, we automatically go to Sheet 3,
Cell F6. And in which category should I write this code - Sheet1, 2, 3, 4, or
5 or This Workbook?
Can anyone help please

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Seelcting specific sheet and cell on startup

Thanks very much for this! It works - of course!

"Gary''s Student" wrote:

In the workbook code area:

Private Sub Workbook_Open()
Sheets("Sheet3").Activate
Range("F3").Select
End Sub

--
Gary''s Student - gsnu200755


"Yendorian" wrote:

I have an Excel workbook which has 5 worksheets. I would like to add some VBA
code so that whenever the workbook is opened, we automatically go to Sheet 3,
Cell F6. And in which category should I write this code - Sheet1, 2, 3, 4, or
5 or This Workbook?
Can anyone help please

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Seelcting specific sheet and cell on startup

Thanks very much for this; That's a great help.

"Kevin B" wrote:


Press Alt+F11 and insert the following code to the Workbook's Open event:

Private Sub Workbook_Open()

Sheets(3).Activate
Range("F6").Select

End Sub
--
Kevin Backmann


"Gary''s Student" wrote:

In the workbook code area:

Private Sub Workbook_Open()
Sheets("Sheet3").Activate
Range("F3").Select
End Sub

--
Gary''s Student - gsnu200755


"Yendorian" wrote:

I have an Excel workbook which has 5 worksheets. I would like to add some VBA
code so that whenever the workbook is opened, we automatically go to Sheet 3,
Cell F6. And in which category should I write this code - Sheet1, 2, 3, 4, or
5 or This Workbook?
Can anyone help please

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
Startup on a specific worksheet Jens Palacios Neffke[_2_] Excel Discussion (Misc queries) 4 April 12th 07 12:16 AM
Send data from userform to specific cell on specific sheet? JennLee Excel Programming 10 March 10th 07 02:55 AM
Startup settings for specific workbook Defoes Right Boot Excel Programming 2 May 31st 05 02:45 PM
Run a Macro on Startup for Specific Spreadsheet Rod Excel Worksheet Functions 4 March 16th 05 08:52 PM
How do I make excel startup in a specific sheet? Siggi Excel Worksheet Functions 2 February 18th 05 08:24 PM


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