LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 95
Default How to reference Worksheets in VBA properly

On Feb 10, 2:55 pm, Dave Peterson wrote:
You could add a worksheet level name (hidden) to each sheet and then use that.

But it makes much more sense to me to use the codename.



"Michael.Tarnowski" wrote:

On Feb 6, 1:25 am, Dave Peterson wrote:
If this was meant for me, I don't understand the question.


"Michael.Tarnowski" wrote:


<<snipped


Gary, Dave -- nice suggestions, I will work with that.
But, how should I proceed if I have define global variables for
different worksheets? -- e.g.
const wsShID_1 = "Config"
const wsShID_2 = "Sheet 1"
and so one... ?
Michael


--


Dave Peterson


To make my point clear:
If I want to address the worksheets by global constants, I would use
the (user)names of the sheets / or the sheet index, like
const worksheetID = 1
or
const worksheetID = "MySheet"


Is there a function in VBA to determine the values (sheet names or
indices) for the constants, like
const worksheetID = foo(...)


Michael


--

Dave Peterson


Thank you Dave for sharing your insights.
Michael
 
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
Cleaning up Excel 97-2003 worksheets to work properly in Office 20 Santiago C Excel Discussion (Misc queries) 0 December 27th 08 11:21 AM
Cleanup worksheets from 97-2003 to work properly on Excel 2007 Santiago C Excel Worksheet Functions 0 December 8th 08 05:43 PM
Reference different worksheets WLMPilot Excel Discussion (Misc queries) 2 December 27th 07 03:42 PM
3d reference not working properly Bren Lane Excel Worksheet Functions 1 March 28th 07 10:15 PM
Worksheets Don't Properly Send When Emailing Erin Excel Discussion (Misc queries) 0 September 28th 06 05:16 PM


All times are GMT +1. The time now is 01:52 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"