+ Reply to Thread
Results 1 to 5 of 5

Goto range based on value of another range(reverse vlookup??)

  1. #1
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Goto range based on value of another range(reverse vlookup??)

    Hi again, what I would like to do with this is when you doubleclick range E1, a msgbox pops up asking if the lot number in the list Q1:R4 is correct. If no, then based on the selection in D1, the correct cell is selected in the range Q1:R4, so for this example, when you answer no, cell R2 would be selected, and if you did the same in E2, then cell R4 would be selected because of the value in D2. Thanks again for the help and hopefully this time I have explained it well and also provided an example worksheet!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Goto range based on value of another range(reverse vlookup??)

    It's not really clear. Maybe something like this?

    Please Login or Register  to view this content.
    Messages have been translated from Dutch to English by means of google translate.

  3. #3
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Goto range based on value of another range(reverse vlookup??)

    Thanks Vragg, your code works perfectly in the example worksheet, but doesn't in the worksheet I need the code in. It throws a "Runtime error 13, Type mismatch" error on this line, "x = Application.Match(Target.Offset(, -1), Columns(17), 0)".

  4. #4
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Goto range based on value of another range(reverse vlookup??)

    Then you have to adjust the code. If a file is not representative, what do you expect from the helpers?

  5. #5
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Goto range based on value of another range(reverse vlookup??)

    Ok then, usually all I need is the basics and any fine tuning I can figure out myself. Thanks.

    Edit, found the problem, in the SS this is going in, column 4 is actually merged with column 3, so that's causing the issue! I have the heading hidden so didn't notice that when I did up the example SS!
    Last edited by thecdnmole; 09-19-2021 at 02:01 PM.

+ 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. [SOLVED] VBA To Count How Many Numbers In A Range Are Between Two Values Then Use GOTO Statment...
    By Ourkid123uk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2019, 09:32 AM
  2. [SOLVED] Populate a range, based on text from another range (VLOOKUP)
    By keith740 in forum Excel General
    Replies: 3
    Last Post: 03-23-2017, 08:08 PM
  3. GoTo another range based on value from dropdown list
    By Bazinga in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2014, 02:18 AM
  4. vlookup; reverse range of array
    By Sri94 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-03-2014, 04:05 PM
  5. Replies: 6
    Last Post: 09-04-2012, 10:35 AM
  6. Goto a named range/cell
    By darbid in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-27-2008, 06:07 AM
  7. [SOLVED] Goto a named range using the contents of the active cell
    By Brian C in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2006, 12:14 AM

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