+ Reply to Thread
Results 1 to 7 of 7

Auto-Populate a sheet from source sheet based on source sheet cell data in column

  1. #1
    Registered User
    Join Date
    03-25-2014
    Location
    Alabama
    MS-Off Ver
    Excel MAC 2011
    Posts
    39

    Auto-Populate a sheet from source sheet based on source sheet cell data in column

    Hello smart people!
    I've been trying to figure this out and I've searched around the forum for something that could suit my needs. All I managed to do was confuse myself further.


    I have a master die list 12 data columns wide....722 Rows (so far, it will grow) SAMPLE ATTACHED
    What I want to do is create more sheets named appropriately, and auto populate those sheets with the same 12 columns, pulling only the rows that match the data located in Column K (CUT) of my master sheet.
    Column K contains data such as "DC" (die cut), "PF" (perforation), "BC" (butt cut), "CR" (circle), etc.

    Example:
    I want to auto populate a new sheet named "Die Cut" with all of the rows containing "DC" in Column K of my master sheet and then auto-sort those rows "ascending" based on the data in column D (WIDTH)

    It seems easy enough, but I haven't been able to make anything work. Any help is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Auto-Populate a sheet from source sheet based on source sheet cell data in column

    give the attached a trial - there is a macro on the combobox on the 'Master Sheet' - if you copy your data into the table on the 'Master Sheet' the table should expand dynamically to accommodate.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  3. #3
    Registered User
    Join Date
    03-25-2014
    Location
    Alabama
    MS-Off Ver
    Excel MAC 2011
    Posts
    39

    Re: Auto-Populate a sheet from source sheet based on source sheet cell data in column

    Hi torachan,
    I tried opening the document, but it tells me it uses active x and that isn't supported in Excel 2011 Mac. It only allows me to open in Read Only mode.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Auto-Populate a sheet from source sheet based on source sheet cell data in column

    Sorry, did not see in your profile you are using a Mac, the attached file hopefully will work, I have used the Forms ComboBox rather than the ActiveX ComboBox - same principle just needed some code tweaking.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-25-2014
    Location
    Alabama
    MS-Off Ver
    Excel MAC 2011
    Posts
    39

    Re: Auto-Populate a sheet from source sheet based on source sheet cell data in column

    I got an error on this one as well. [screenshots] It certainly tried to work. When I exited debugger Sheet "PF" had some data on it.
    Screen Shot 2022-10-21 at 8.16.29 AM.jpg


    Now that I see what you're doing I should also add that there are 3 items not represented in the K column of the test file. Those being "BC", "LNR" and "LSR SHEET". I'm not sure if you need to know that on the front end or if the code will just add a sheet for whatever it finds in that column.
    Last edited by Cbutts; 10-24-2022 at 07:13 AM.

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Auto-Populate a sheet from source sheet based on source sheet cell data in column

    Hi. the attachments are invalid, I do not think the paperclip work, use 'insert image' in the menu bar of the 'quick reply' box.
    hopefully someone with a 'Mac' will see this and look through the code (it works OK with Windows 11 - Excel 2010) most likely some reference that 'Mac' does not recognise.
    The 3 other item would have to be added to the array in the code and corresponding code inserted (it is fairly obvious what and where to someone with VB knowledge)

  7. #7
    Registered User
    Join Date
    03-25-2014
    Location
    Alabama
    MS-Off Ver
    Excel MAC 2011
    Posts
    39

    Re: Auto-Populate a sheet from source sheet based on source sheet cell data in column

    Thanks torachan,
    I updated the photos.
    I've got very limited VB knowledge but I do see where the items should be added to the array.
    Maybe someone will offer a fix for the Mac thing.
    Thanks for your time!

+ 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. [SOLVED] copy from one sheet to another based on criteria and delete copied rows from source sheet
    By chriswrcg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2022, 07:33 PM
  2. Replies: 0
    Last Post: 07-28-2021, 08:00 AM
  3. Replies: 0
    Last Post: 01-23-2020, 05:45 PM
  4. [SOLVED] Auto Populate from Source Sheet
    By fareedexcel in forum Excel General
    Replies: 2
    Last Post: 11-13-2017, 11:00 AM
  5. Populate “template” sheet from data in “source” sheet
    By eddiecruz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-22-2016, 03:08 PM
  6. copying and pasting from source sheet to destination sheet without naming source sht?
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-02-2006, 01:15 PM

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