PC Review


Reply
Thread Tools Rate Thread

Confusion with Names

 
 
mfq
Guest
Posts: n/a
 
      10th Oct 2006
When I go to the VBA IDE of a workbook, I see the Project Explorer,
Properties Window, and the Code window. If I look at the Project
Explorer, each worksheet is titled Sheet1(Sheet1). In the Properties
Window, I see two types of names: (Name) and Name, i.e., one enclosed
in parenthesis and the other not. What are the differences between
these two types of names for the worksheet?
I want the user to have the ability to change the worksheet names but
not have it affect my code. I tried Index and Item but those refer to
the position of the sheet and not it's "name".

Michael
VBA Beginner

 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      10th Oct 2006
One is the tab name that you see on the tab, the other is the codename.

http://www.cpearson.com/excel/codemods.htm
Chip Pearson has a explanation.


In the project explorer it is
Codename (tabname)


In the properties window, the codename is (name), the tab name is name

just the opposite.

Rename a sheet tab and have a look.


--
Regards,
Tom Ogilvy

"mfq" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When I go to the VBA IDE of a workbook, I see the Project Explorer,
> Properties Window, and the Code window. If I look at the Project
> Explorer, each worksheet is titled Sheet1(Sheet1). In the Properties
> Window, I see two types of names: (Name) and Name, i.e., one enclosed
> in parenthesis and the other not. What are the differences between
> these two types of names for the worksheet?
> I want the user to have the ability to change the worksheet names but
> not have it affect my code. I tried Index and Item but those refer to
> the position of the sheet and not it's "name".
>
> Michael
> VBA Beginner
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      10th Oct 2006
You have other replies to your other posts.

mfq wrote:
>
> When I go to the VBA IDE of a workbook, I see the Project Explorer,
> Properties Window, and the Code window. If I look at the Project
> Explorer, each worksheet is titled Sheet1(Sheet1). In the Properties
> Window, I see two types of names: (Name) and Name, i.e., one enclosed
> in parenthesis and the other not. What are the differences between
> these two types of names for the worksheet?
> I want the user to have the ability to change the worksheet names but
> not have it affect my code. I tried Index and Item but those refer to
> the position of the sheet and not it's "name".
>
> Michael
> VBA Beginner


--

Dave Peterson
 
Reply With Quote
 
mfq
Guest
Posts: n/a
 
      10th Oct 2006
Excellent tips on all who wrote back. Thank You!!
I also found a similar answer (codename) in Roman's book after much
digging.
Dave Peterson wrote:
> You have other replies to your other posts.
>
> mfq wrote:
> >
> > When I go to the VBA IDE of a workbook, I see the Project Explorer,
> > Properties Window, and the Code window. If I look at the Project
> > Explorer, each worksheet is titled Sheet1(Sheet1). In the Properties
> > Window, I see two types of names: (Name) and Name, i.e., one enclosed
> > in parenthesis and the other not. What are the differences between
> > these two types of names for the worksheet?
> > I want the user to have the ability to change the worksheet names but
> > not have it affect my code. I tried Index and Item but those refer to
> > the position of the sheet and not it's "name".
> >
> > Michael
> > VBA Beginner

>
> --
>
> Dave Peterson


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract first names, middle names, last names and JR/SR MrsMrfy Microsoft Excel Discussion 8 7th Mar 2008 02:21 AM
Confusion with Names mfq1975 Microsoft Excel Misc 1 10th Oct 2006 03:02 AM
Confusion with Names mfq1975 Microsoft Excel Discussion 1 10th Oct 2006 03:00 AM
Change names of files in a folder to match names in Excel Column saybut Microsoft Excel Programming 4 9th Feb 2004 06:26 PM
Names Names Names Bill William Pat Patrick P G Microsoft Access 3 9th Dec 2003 04:08 AM


Features
 

Advertising
 

Newsgroups
 


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