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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Sheets

Status
Not open for further replies.

cg084

Technical User
May 3, 2002
67
GB
Hello,

I am trying to find the name of the 1st sheet in an Excel workbook. Currently i am opening several excel spreadsheet and need to be able to id the 1st sheet of each one and for it to select that sheet. e.g Sheet 1 in a default new spreadsheet.

Thank you
 
Try:
Code:
sub nameofsheet
nam$ = Sheets(1).name
end sub
 
Molby,

Thank you it works great now.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top