+ Reply to Thread
Results 1 to 2 of 2

Retrieving VLookup Values

  1. #1
    Registered User
    Join Date
    09-14-2005
    Posts
    6

    Retrieving VLookup Values

    Hi there.

    I'm creating an excel workbook and I want to create a macro which moves to the correct worksheet. It retrieves this correct worksheet from a VLookup formula, linked to a drop down box.

    Example:

    On the DataSheet the values are:

    1 | Worksheet name
    2 | Other worksheet name

    and on the page with the macro and form the formula is =VLOOKUP(D2,DataSheet!B2:D5,2) (D2 is a drop down box from which the worksheets are chosen)

    Any ideas how I can get VB to read the VLookup to get the worksheet name?

    Thanks.

  2. #2
    Registered User
    Join Date
    09-14-2005
    Posts
    6

    whoops

    Man I feel like a noob now. Sorry.

    For future reference, it was the .Value I needed =/

    It's been a while since I've worked with Macros so... yeah... that's my excuse =)

+ 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