ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selecting a sheet by codename (https://www.excelbanter.com/excel-programming/308893-selecting-sheet-codename.html)

Dr.Schwartz

Selecting a sheet by codename
 
I have a sheet with the codename P1. Can anyone supply me with the syntax for
selecting/activating the sheet by using the codename?

Thanks
The Doctor

SoC[_2_]

Selecting a sheet by codename
 
Try something like:

worksheets("P1").activate

SoC


---
Message posted from http://www.ExcelForum.com/


Norman Jones

Selecting a sheet by codename
 
Hi Dr.Schwartz,

P1.Select

or

P1.Activate

---
Regards,
Norman



"Dr.Schwartz" wrote in message
...
I have a sheet with the codename P1. Can anyone supply me with the syntax
for
selecting/activating the sheet by using the codename?

Thanks
The Doctor




Tom Ogilvy

Selecting a sheet by codename
 
Back on 25 August, Paul responded to the same question:

Sheet1.Select

--
Paul B


To which you replied:

"Dr.Schwartz" wrote in message
...

Very simple indeed - thanks Paul




"Paul B" wrote:




Sheet1.Select




--


Paul B




--

Regards,

Tom Ogilvy



"Dr.Schwartz" wrote in message
...
I have a sheet with the codename P1. Can anyone supply me with the syntax

for
selecting/activating the sheet by using the codename?

Thanks
The Doctor





All times are GMT +1. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com