+ Reply to Thread
Results 1 to 4 of 4

Macro to generate a list from a table

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

    Macro to generate a list from a table

    Hi Everyone,

    Hopefully this is an easy one which someone can help me with - cant seem to get my head round how to get this to work.

    Example excel attached with original table and output list.

    The output i am required to generate is a list ( containing two columns TIMEBIN,SITE) which provide the same number of records as that stated in the COUNT column for each timebin record..

    I have shown in the excel sheet what i need - hopefully this all makes sense.

    If i haven't explained myself properly then please feel free to ask further questions.

    Thanks Uzz.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Macro to generate a list from a table

    Try this

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.
    Martin

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

    Re: Macro to generate a list from a table

    Martin,

    Works perfectly - many thanks for your assistance.

    Regards

    Uzz

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Macro to generate a list from a table

    You may also try this.....
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Replies: 0
    Last Post: 02-12-2014, 08:22 AM
  2. Generate Unique List from Pivot Table
    By dkang2007 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-02-2013, 03:06 PM
  3. Generate Table from Drop-Down list
    By scurveydog in forum Excel General
    Replies: 2
    Last Post: 06-07-2011, 12:42 PM
  4. macro to generate sorted table from unsorted list?
    By JGCA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-14-2009, 11:36 AM
  5. Using Macro to link sql table to generate Pivot Table
    By Benard in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2008, 06:02 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