+ Reply to Thread
Results 1 to 2 of 2

Use Sheetname as Vlookup lookup_value

  1. #1
    Registered User
    Join Date
    04-27-2005
    Posts
    1

    Use Sheetname as Vlookup lookup_value

    Any ideas if this is possible? example - imaginery syntax ;-)

    vlookup(sheetname, A5:B5, 2)

    Sho if the sheetname if 290 it will perform a V lookup for 290.

    Thanks for thoughts

  2. #2
    Forum Contributor
    Join Date
    01-26-2005
    Posts
    108
    I'm a bit flaky on VBA but I think you ought to be able to set up a Worksheet Activate bit of VBA that stored the worksheet name in a cell which you can then easily reference in your vlookup.

    Something like ...

    Range("A1").Formula = ActiveSheet.Name

    ... would put the current worksheet name into cell A1.

    Each time you returned to the worksheet, the cell would be updated but this is a tiny overhead.
    Tony

+ 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