+ Reply to Thread
Results 1 to 2 of 2

Detrmining a range for a name

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    Quebec, Quebec
    MS-Off Ver
    Excel 2003
    Posts
    5

    Detrmining a range for a name

    Hello everyone,

    I need to create a range name in VBA based on specific value that I need to extract. For example, imagine the following example to create a range named "color":
    A1: "blue" (the value that I need to extract)

    and

    B1:"green"
    B2:"blue"
    B3:"orange"
    B4:"yellow"

    I need to create a macro able to do something like

    Please Login or Register  to view this content.
    I thougt use a collection objet that would record green, orange and yellow, then copy paste each item of the collection in column C and then refer "color" to C1:C3... but I'm wondering if there is a faster way to obtain the same result.

    Many thanks

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Detrmining a range for a name

    Not clear at all!
    Pas certain de comprendre ce que tu veux faire.
    Can you attache a workbook with example data.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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