Macro, select Sheet "Number", NOT Sheet Name

D

DAA

Hi,

My macro reads: "Sheets("01-Nov-04 Portfolio
Summary").Select" (referring to Sheet1).

How can I write the macro so Sheet1 will be selected?

I have to change my macro everyday because sheet1's name
changes everyday.

Thank you in advance.
 
D

Don Guillett

sheet1.select will select the index of the sheet
sheets(1).select will select the one to the far left.
 

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