Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Referencing worksheet just by its name

If "Setup" is the Code Name of the sheet (Type ?Worksheets("Setup").CodeName
in the immediate window to varify), then that is a perfectly acceptable
syntax.
--
Charles Chickering

"A good example is twice the value of good advice."


"Antonio" wrote:

I am using some VBA code that uses the worksheet name instead of
worksheets(worksheet_name) to reference it.

For example

SETUP.Cells(1,1)=3

instead of Worksheets("SETUP").Cells(1,1)=3

I know how to do that if I use

Dim SETUP as Worksheet

Set SETUP=Worksheets("SETUP")

However, I have looked for the above declarations in the code and don't find
it.

When I type SETUP. I get the intellisense for the worksheet object.

How can it be done?

Thanks,

Antonio

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
Referencing another worksheet Carena Excel Worksheet Functions 2 August 27th 08 12:26 AM
Referencing a Worksheet newguy Excel Discussion (Misc queries) 3 December 12th 06 07:31 PM
3-D Worksheet referencing Ross M. Greenberg Excel Discussion (Misc queries) 5 May 7th 06 06:15 PM
CountIF() in Worksheet B while referencing cells in Worksheet A jfj3rd Excel Worksheet Functions 3 April 14th 06 11:24 PM
CountIF() in Worksheet B while referencing cells in Worksheet A jfj3rd Excel Worksheet Functions 3 April 14th 06 07:36 PM


All times are GMT +1. The time now is 04:31 AM.

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"