how to select a sheet by name

  • Thread starter Thread starter jzhao7
  • Start date Start date
J

jzhao7

Hi guys,

How can I go to a sheet by name, for example

I have a=0 (a is a string, not integer) and a sheet named 0. How can I
select the sheet using variable a?

Thanks for the help!

J. Zhao
 
Not sure exactly what you're doing, but this will work as well as what
Gary wrote:

a = "0"
Worksheets(a).Activate

The quotes around the 0 are important!
 
Worksheets(a).Activate

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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