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
Gary Keramidas - 20 Sep 2006 16:55 GMT
Worksheets("0").Activate

Signature
Gary
> Hi guys,
>
[quoted text clipped - 6 lines]
>
> J. Zhao
John Fuller - 20 Sep 2006 17:39 GMT
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("0").Activate
>
[quoted text clipped - 12 lines]
> >
> > J. Zhao
Bob Phillips - 20 Sep 2006 17:53 GMT
Worksheets(a).Activate

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> Hi guys,
>
[quoted text clipped - 6 lines]
>
> J. Zhao