Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Startup on a specific worksheet | Excel Discussion (Misc queries) | |||
Send data from userform to specific cell on specific sheet? | Excel Programming | |||
Startup settings for specific workbook | Excel Programming | |||
Run a Macro on Startup for Specific Spreadsheet | Excel Worksheet Functions | |||
How do I make excel startup in a specific sheet? | Excel Worksheet Functions |