+ Reply to Thread
Results 1 to 5 of 5

Macro to generate a list of values

  1. #1
    Registered User
    Join Date
    11-15-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    19

    Macro to generate a list of values

    Hi All,

    I hope someone can help.

    I am trying to set-up a macro the process our "Link" and "Class" data to produce all full pick-list of all possible "Link and Class" variations.

    I have attached an example file which shows the original data in Column A & Column B and the output i am looking for Column D and Column E (Highlighted in green).

    The main thing is that the number of values/records in Column A and Column B varies sheet to sheet.

    Hopefully someone can assist, if i havent explained it too well please feel free to contact me.

    Many thanks in advance.

    Gary
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Macro to generate a list of values

    Gary,

    It should be noted that this can be accomplished with dynamic named ranges and formulas. However, because you asked for a macro solution, here is a macro that accomplishes what you described. If you are interested in the formula solution, let me know:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    11-15-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Macro to generate a list of values

    Absolutely perfect - thank you so much for your quick response, macros is ideal.

    Thanks once again

    Gary

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Macro to generate a list of values

    Gary,

    You're welcome

    If that takes care of your need, please mark this thread as solved:
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Macro to generate a list of values

    @ Uzzgee

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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