Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default refer to the sheets Name property in my code (not what is on the Tab)

I changed the Name property of a worksheet in the Properties pane of the VBA Editor. This does not change the text that shows up on the sheets "Tab."

I want to refer to the sheets Name property in my code (not what is on the Tab) incase the your changes the name on the Tab

How do I do this? (I know I've seen this posted here before, but I can't find it.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default refer to the sheets Name property in my code (not what is on the Tab)

Sandy,

Something like

Sheet1.Range("A1")

as against

Worksheets("Sheet1").Range("A1")

for the tab name

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Sandy" wrote in message
...
I changed the Name property of a worksheet in the Properties pane of the

VBA Editor. This does not change the text that shows up on the sheets "Tab."

I want to refer to the sheets Name property in my code (not what is on the

Tab) incase the your changes the name on the Tab.

How do I do this? (I know I've seen this posted here before, but I can't

find it.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default refer to the sheets Name property in my code (not what is on the Tab)

Hey Sandy,

if your sheetname is "InnerSheetName" but on the tab it
says "Sheet1"

you can use [InnerSheetName] to refer to the object.

try this:
msgbox [InnerSheetName].name

this will give a message box with the tab name.

this should work for you.

Regards
Sanjay VA

-----Original Message-----
I changed the Name property of a worksheet in the

Properties pane of the VBA Editor. This does not change
the text that shows up on the sheets "Tab."

I want to refer to the sheets Name property in my code

(not what is on the Tab) incase the your changes the name
on the Tab.

How do I do this? (I know I've seen this posted here

before, but I can't find it.
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default refer to the sheets Name property in my code (not what is on the Tab)

so will this

msgbox InnerSheetName.name


without the brackets.

--
Regards,
Tom Ogilvy

"sanjay va" wrote in message
...
Hey Sandy,

if your sheetname is "InnerSheetName" but on the tab it
says "Sheet1"

you can use [InnerSheetName] to refer to the object.

try this:
msgbox [InnerSheetName].name

this will give a message box with the tab name.

this should work for you.

Regards
Sanjay VA

-----Original Message-----
I changed the Name property of a worksheet in the

Properties pane of the VBA Editor. This does not change
the text that shows up on the sheets "Tab."

I want to refer to the sheets Name property in my code

(not what is on the Tab) incase the your changes the name
on the Tab.

How do I do this? (I know I've seen this posted here

before, but I can't find it.
.



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
How do I use the .Cells property to refer to ActiveCell? Caeres Excel Discussion (Misc queries) 9 October 7th 08 02:56 PM
find out which sheets refer to a cel Ivano Excel Worksheet Functions 1 April 24th 07 06:26 PM
How to refer to a cell format code? A difficult problem Excel Discussion (Misc queries) 1 May 25th 05 08:42 AM
BackColor property code Joe Mathis Excel Programming 3 December 9th 03 04:11 PM
"Select Column method or property not available because some/all of object doesn't refer to table" Steven Rosenberg Excel Programming 0 August 18th 03 04:41 AM


All times are GMT +1. The time now is 06:56 PM.

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

About Us

"It's about Microsoft Excel"