Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Selecting a sheet by code name

Can anyone please supply me with the syntax for selecting a sheet by the code
name - NOT by name: sheets("MySheet").select

Thanks
The Doctor
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Selecting a sheet by code name

Sheet1.Select

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **

"Dr.Schwartz" wrote in message
...
Can anyone please supply me with the syntax for selecting a sheet by the

code
name - NOT by name: sheets("MySheet").select

Thanks
The Doctor



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Selecting a sheet by code name

In your project explorer you see the names of sheets listed like:
Sheet1 (Sheet1)
Sheet2 (Sheet2)
etc.

If you change the tab names it becomes:
Sheet1 (My Sheet)
Sheet2 (His Sheet)
etc.

In the second example, to refer to Sheets("My Sheet") by code name you
simply use:
Sheet1

For example:
Sheet1.Select

The code names can be chanced from the Properties window. Open the
properties window and click on the sheet you want to rename in the
project explorer. You'll then see the code name at the top of the
properties window where it can be edited. - pikus


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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Code for selecting worksheet Marie Bayes Excel Discussion (Misc queries) 5 January 11th 07 12:37 PM
VBA Code for selecting row [email protected] Excel Discussion (Misc queries) 2 June 9th 05 10:44 PM
VBA Code for selecting days Rob_NZ Excel Programming 0 August 24th 04 06:29 AM
Selecting a PivotItem in code Robert E. Peterson Excel Programming 1 February 4th 04 06:30 PM
VBA code for selecting and copying rows to another sheet. lothario[_6_] Excel Programming 4 October 14th 03 01:15 PM


All times are GMT +1. The time now is 07:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"