+ Reply to Thread
Results 1 to 9 of 9

Dynamic Lists

  1. #1
    Registered User
    Join Date
    02-26-2015
    Location
    South Carolina
    MS-Off Ver
    2010
    Posts
    5

    Question Dynamic Lists

    I'm looking to create a list of company names that dynamically update on separate sheets as I add new companies. I want the list on one sheet and I want that list to appear on multiple sheets and create a new row that's part of a sorted list each time I add a new company. For Example:

    current list on sheet 1, 2, and 3 (sheet 1 is this data only; sheet 2 and 3 have different data sets)
    ABC Company
    XYZ Company

    I update sheet 1 to the following:

    ABC Company
    XYZ Company
    NEW Company

    Now, when I make that addition, I want a new row created on sheets 2 and 3 automatically.

    Anyone know how to do this?
    Last edited by russmeister; 02-26-2015 at 04:12 PM.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Dynamic Lists

    A lot of details are missing in your post, but the basic structure for what you want is below. I tried to comment what you need to modify, based on how your sheets are laid out.

    The code belongs in Sheet1's object.

    If you need help modifying the code, please post your workbook or an example workbook that mirrors you workbook's formatting.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-26-2015
    Location
    South Carolina
    MS-Off Ver
    2010
    Posts
    5

    Re: Dynamic Lists

    Attached is an example.Example Dynamic Workbook.xlsx

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Dynamic Lists

    Here you go. Works perfectly on the example you provided and the description you gave. Let me know if you need any modifications.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-26-2015
    Location
    South Carolina
    MS-Off Ver
    2010
    Posts
    5

    Re: Dynamic Lists

    Thanks! Looks good but one additional step. There are other formulas on the page, specifically sums that take place at the bottom and ends of each row and column. Can those be automatically updated as well to include the added rows? Also, when the rows are added, what do I need to change in the formula so it sorts alphabetically?

  6. #6
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Dynamic Lists

    what do I need to change in the formula so it sorts alphabetically
    It should already sort alphabetically, and it does for me. That's what the last part of the code, starting at ws2.Sort.SortFields.Clear, is doing. Like I said, it works for me, can you double check, please?

    Can those be automatically updated as well to include the added rows
    Yes. See code, you can add the code below right before Application.ScreenUpdating = True near the end of the code.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-26-2015
    Location
    South Carolina
    MS-Off Ver
    2010
    Posts
    5

    Re: Dynamic Lists

    So I've added the code you have referenced here but it's not updating the sum totals at the bottom under "weekly results" nor is it adding it to the columns for Feb and March in each new row.

    I've attached the workbook again here with the updates you've provided.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Dynamic Lists

    Oops, simple syntax error on my part concerning LastRow2 and LastRow3. Replace the previous code i posted with this:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-26-2015
    Location
    South Carolina
    MS-Off Ver
    2010
    Posts
    5

    Re: Dynamic Lists

    Look at column H & T. These do not update but the above does fix the weekly results 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)

Similar Threads

  1. Dynamic Lists
    By CIRHS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2014, 05:00 AM
  2. Dynamic Lists
    By mikera in forum Excel General
    Replies: 5
    Last Post: 08-16-2010, 01:54 PM
  3. Dynamic Lists
    By Zandra in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2009, 09:47 PM
  4. [SOLVED] Dynamic Lists
    By Alex Mackenzie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2006, 02:45 PM
  5. autofill with dynamic lists
    By Pontus SWE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2005, 02:05 PM

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