+ Reply to Thread
Results 1 to 5 of 5

Struggling to refer to a named range on a specific sreadsheet

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Struggling to refer to a named range on a specific sreadsheet

    I have an excel form I am creating.

    The user has asked for two radio buttons called Goods1 and Goods2

    If the user ticks Goods1 a field on the form called txt_Goodsname will lookup what is held in a spreadsheet called "LookupLists" in call M3 (named range Goods1) and return that name.

    If the user ticks Goods2 the field on the form called txt_Goodsname will lookup what is held in a spreadsheet called "LookupLists" in cell N3(named range called Goods2)
    and return that name.


    I'm a little new to this and tried writing some code on the click of radio button 1
    Please Login or Register  to view this content.
    Unsurprisingly it doesn't work. I would greatly appreciate any pointers in the right direction.

    Many thanks

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

    Re: Struggling to refer to a named range on a specific sreadsheet

    Let's try this. You said that there was a range named Goods1 but you haven't used that name in your code. We'll take advantage of it here:

    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
    12-02-2011
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Struggling to refer to a named range on a specific sreadsheet

    Quote Originally Posted by 6StringJazzer View Post
    Let's try this. You said that there was a range named Goods1 but you haven't used that name in your code. We'll take advantage of it here:

    Please Login or Register  to view this content.
    That worked a treat. But if the user changes their mind and goes and clicks from one radio button to another it doesn't seem to refresh. Should I be looking at clearing the field before?

    Many thanks for all of your help

  4. #4
    Registered User
    Join Date
    12-02-2011
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Struggling to refer to a named range on a specific sreadsheet

    Aah , I think I need to work on it as it is changing the value in the worksheets LookupLists and not in the form. Will do some further research but I have got further so that's great thanks

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,220

    Re: Struggling to refer to a named range on a specific sreadsheet

    You need another

    Please Login or Register  to view this content.
    that looks like this one but refers to Goods2.

    For more comprehensive help, attach your file.

+ 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. Refer to named range without INDIRECT
    By esbencito in forum Excel General
    Replies: 3
    Last Post: 08-28-2018, 02:20 AM
  2. Refer to name of named range - name manager
    By jaryszek in forum Excel General
    Replies: 16
    Last Post: 05-15-2018, 08:15 AM
  3. [SOLVED] What happens when I refer to a named range?
    By RogeratCCCC in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-21-2012, 04:06 PM
  4. VBA Refer to named range in different workbook
    By globalpontoon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2010, 03:20 AM
  5. Refer indirectly to named range
    By chartguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2009, 12:50 PM
  6. Refer a specific cell in a named cell range
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2006, 03:10 PM
  7. How does one refer to the n-1 element of a named range?
    By Charles Hewitt in forum Excel General
    Replies: 2
    Last Post: 11-26-2005, 03:00 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