Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Select First Sheet 3

Status
Not open for further replies.

mveera

Programmer
Nov 6, 2002
81
US
Hi,

ActiveSheet has properties to go to the next sheet or the previous sheet
ActiveSheet.Previous.Select
ActiveSheet.Next.Select

Like this, is there any property to go to the First sheet or the last sheet. We want something like a navigation tool.

Thanks
Veera
 

Sheets(1).Select
Sheets(Sheets.Count).Select

I think will select the first and last sheets.

 
Thank You Very much.

I was under the assumption that when we say Sheets(1).select it will select the sheet named sheet1.

Its working fine.
Veera
 
In order to do that you would enter:

Sheets("Sheet1").Select

Sheets (or Worksheets) is a collection, you can get its members by number or name. It also has a Count property that I used to refer to the last sheet above.

Thanks for the star!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top