+ Reply to Thread
Results 1 to 2 of 2

Sheet reference in a formula

  1. #1
    Registered User
    Join Date
    06-10-2009
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    10

    Sheet reference in a formula

    Hello,

    I'm trying to get VBA to use the sheet reference in a formula instead of the sheet's name.

    Here's an example :

    Please Login or Register  to view this content.
    Now, instead of 'Week August 30' in that reference, I want to use Sheet5 because the name of the sheet will change in the future, making the code look for a non-existant sheet.

    Any help with this is very much appreciated.
    Last edited by Yobari; 09-09-2009 at 10:40 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sheet reference in a formula

    The formula must use a name but you can set the name per the sheet5 name at run-time:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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