Seelcting specific sheet and cell on startup

Y

Yendorian

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
 
G

Gary''s Student

In the workbook code area:

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

Kevin B

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
 
Y

Yendorian

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

Gary''s Student said:
In the workbook code area:

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

Yendorian

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

Kevin B said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top