Selecting a worksheet in a workbook

  • Thread starter Thread starter Lazer
  • Start date Start date
L

Lazer

I have two workbooks. I want to select a worksheet by name.
"Wrksheet.Name" *is* evaulating to the name of the sheet - but on th
following line I get that it is not a proper method of Worksheets...

mainworkbook.Worksheets(wrksheet.Name).Select

Thanks!
Elieze
 
is mainworkbook the activeworkbook.

mainworkbook.Activate
mainworkbook.Worksheets(wrksheet.Name).Activate

or

Application.Goto wrksheet.Range("A1"), true
 

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

Back
Top