+ Reply to Thread
Results 1 to 4 of 4

Best Practice for Sheet References

  1. #1
    Forum Contributor
    Join Date
    08-05-2009
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    160

    Best Practice for Sheet References

    Is there a best practice with regard to how a worksheet is referenced?
    I'm thinking of Sheets(n) vs "Sheetn" (the text on the sheet tab)

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Best Practice for Sheet References

    Name them something short yet meaningful.

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent SAC
    Posts
    8,885

    Re: Best Practice for Sheet References

    If you mean in code within the same workbook, then use the codename if possible as it is much less likely to be changed by a user than the tab name or position.
    Rory

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Best Practice for Sheet References

    You can find the Sheet CodeName by opening the Project Explorer(ALT-F11) and in the Left Pane look for the Name NOT between parenthesis.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Update All Sheet References in All Formulas in A Sheet?
    By Norcal1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-03-2018, 01:38 AM
  2. Using variables to populate sheet and cell references in another sheet
    By TLW80 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2014, 08:20 PM
  3. How to copy sheet and keep references to that sheet?
    By the-trooper in forum Excel General
    Replies: 5
    Last Post: 07-29-2014, 02:43 AM
  4. VLOOKUP table on one sheet that references every sheet in workbook
    By sportsman56 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2013, 12:22 PM
  5. help panel won't go away after saving a practice sheet
    By bernie b. in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 05-03-2006, 03:35 PM
  6. [SOLVED] Excel practice sheet. Can't view instructions.
    By Lindyloo in forum Excel General
    Replies: 0
    Last Post: 02-05-2006, 03:25 PM
  7. Replies: 9
    Last Post: 02-02-2005, 09:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1