+ Reply to Thread
Results 1 to 4 of 4

Lookup Up Set Value Go to Source Cell VBA

  1. #1
    Registered User
    Join Date
    10-12-2021
    Location
    US
    MS-Off Ver
    2016
    Posts
    4

    Talking Lookup Up Set Value Go to Source Cell VBA

    Hello,

    Is there a way to look up a fixed value and go to the source cell in a spreadsheet?

    Ex. in Vlookup it would be (vlookup="NY",A:Z,15,0)

    So I want to look up column containing NY and give me the result in column 15.

    Any help would be amazing!
    Last edited by Nunyabitness; 10-13-2021 at 05:39 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Lookup Up Set Value Go to Source Cell VBA

    You would do something like this but you left out some information:

    How do you want to specify what "fixed value" it should search for?
    What action do you want to trigger this? Push a button? Change a value?


    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-12-2021
    Location
    US
    MS-Off Ver
    2016
    Posts
    4

    Re: Lookup Up Set Value Go to Source Cell VBA

    I want to click on a Picture and go to the cell in another sheet where "NY" is and find the total in column 15. It's a US map with individual pictures for each state.

    Would I have to do that for each state in VBA? If there's an easier way to do it I'm open to that.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Lookup Up Set Value Go to Source Cell VBA

    If you name the pictures according to the state they represent this could be straightforward in VBA. You would have them all call the same Sub and then modify the above code as shown:
    Please Login or Register  to view this content.
    Change Sheet1 to whatever sheet contains your data.

+ 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. excel Entering the values assigned to the object
    By Grz3siu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2015, 11:26 AM
  2. Replies: 0
    Last Post: 06-19-2014, 02:09 PM
  3. Replies: 0
    Last Post: 06-04-2014, 10:08 AM
  4. Lookup Excel values to print values in second spreadsheet?
    By brianlg in forum Access Tables & Databases
    Replies: 8
    Last Post: 09-03-2013, 09:51 AM
  5. Excel - Lookup between two values
    By acefreemok in forum Excel General
    Replies: 2
    Last Post: 01-09-2012, 09:17 PM
  6. Replies: 2
    Last Post: 03-31-2009, 03:55 PM
  7. [SOLVED] Confusion about how the Window object fits into the Excel object model
    By Josh Sale in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-18-2005, 10:06 AM

Tags for this Thread

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