+ Reply to Thread
Results 1 to 5 of 5

Use Cell Value to Activate Named Range

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Use Cell Value to Activate Named Range

    Hi. I have several named ranges defined. I was trying to create a macro that would pick up a location a user put in a cell and use that to highlight the named range by putting it in the goto box. When I originally recorded the macro, it took the value of the cell at that time and put that in the code. I've tried all the variations I can think of and can't get it to work. I've corrupted the original macro by trying things so it won't work and I'll have to redo it.

    Is there a way to make this work or is there some other way to select the named ranges based on the user input?

    The purpose of the whole ordeal is to have the user put in their location and then have the macro paste a list of their store data on a page for data entry. Thanks.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,908

    Re: Use Cell Value to Activate Named Range

    If "nrD" is a Named Range and cell A2 contains "nrD" then:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Use Cell Value to Activate Named Range

    Is this a helpful starting point?

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    02-06-2013
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Use Cell Value to Activate Named Range

    I tried the first reply, and it partly works, but apparently I'm still doing something wrong. It highlights the range based on the cell, but doesn't go further. The line where it stops is marked. Thanks.

    Please Login or Register  to view this content.
    Last edited by countingbackwards; 10-28-2014 at 01:09 PM. Reason: added file and code tags

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,908

    Re: Use Cell Value to Activate Named Range

    Please use Code Tags and please post a sample workbook.

    Regards, TMS

+ 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] determining if cell is part of named range and what that named range is
    By stnkynts in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2014, 07:56 PM
  2. [SOLVED] Determining if the value of a cell can be a named range, then assigning named ranges after
    By Romulo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2013, 06:05 PM
  3. How to activate a specific cell within a range
    By Eduard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2008, 03:31 AM
  4. [SOLVED] inserting a named range into new cells based on a named cell
    By Peter S. in forum Excel General
    Replies: 1
    Last Post: 06-03-2006, 10:55 PM
  5. [SOLVED] If any cell in named range = 8 then shade named range
    By JJ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-26-2005, 07:05 PM

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