+ Reply to Thread
Results 1 to 13 of 13

Auto creation of multiple sheets and population of data from one main source (VBA Coding)

  1. #1
    Registered User
    Join Date
    11-18-2017
    Location
    Sheffield, England
    MS-Off Ver
    Professional Plus 2016
    Posts
    6

    Auto creation of multiple sheets and population of data from one main source (VBA Coding)

    Hello!

    I've setup a workbook for event registration which, using VLookup, populates 'Sheet 1 columns B-G' from 'Sheet 2 columns B-G' when a unique ID number is entered into 'Sheet 1 column A'. The information it populates is (Applicant Number, Name, Surname, Talk description, Talk time, Group).

    What I'm hoping for is that when a unique ID number is entered in Sheet 1 column A, new sheets are automatically created based upon the 'talk description' and populated with the appropriate (Applicant Number, Name, Surname, Talk description, Talk time, Group) information.

    I've tried a few methods of VBA coding but all require a manual intervention to run and ideally I was hoping this would be an automatic function.

    I've attached a sample file - Any help is greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    Install this code in the worksheet code module for sheets("Registration")
    Please Login or Register  to view this content.
    The code will run when any change is made to the worksheet. It will only execute when the change is made in column A in a single cell. You cannot execute the code if you paste more than one cell of data into column A.

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    .
    And ... if you are interested ... here is an addition to the macro code that will auto-name the newly created tab corresponding to the person's Last Name, First Name for quick reference :

    Please Login or Register  to view this content.
    NOTE: I changed your second sheet name to DATABASE. If you prefer the original tab name, edit the macro code anywhere you see "Database".
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-18-2017
    Location
    Sheffield, England
    MS-Off Ver
    Professional Plus 2016
    Posts
    6

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    Brilliant - thanks both, much appreciated!

    Is it possible to include the following in the same coding? (I've had a look at editing but wanted to check here!)

    1. Live cell/cursor to always remain in Sheet 1 Column A - During event registration I'll be barcode scanning the unique numbers into cell A2 to create the data distribution.

    2. For each named sheet, English, Italian etc. to be populated with list of registered individuals linked to that 'talk description'. When I tested the coding it created an individual sheet for each name or talk description (when I amended it so possibly my error).

    *Not sure if it's easier if I create the 'talk description' sheets beforehand and use them as reference points to populate upon entering a unique ID in cell A2.

    Apologies if I'm asking simple questions - relatively new to VBA coding!

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    .
    Question #1 -

    In the Worksheet_Change macro :

    Please Login or Register  to view this content.
    Question #2 -

    If I understand correctly, rather than each individual having their own worksheet ... you desire to have an individual sheet for each language, and those participants who
    speak that language be included on the appropriate language sheet ?

    Is that correct ?

  6. #6
    Registered User
    Join Date
    11-18-2017
    Location
    Sheffield, England
    MS-Off Ver
    Professional Plus 2016
    Posts
    6

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    That's great, thanks for the update for Q1.

    Q2. Yes, that's correct. A completed registration would include individual sheets for English, Italian etc. and a list of people attending under those 'talk descriptions'. Some lists may have 10, some 2 people and so on.

    Hope that helps!

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    .
    See attached:
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-18-2017
    Location
    Sheffield, England
    MS-Off Ver
    Professional Plus 2016
    Posts
    6

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    Amazing - Thank you so much!

    Apologies, one final query - This functionality removes the automation from cell A2 with the need to press 'enter' to create and populate. Is it possible for that to be automated?

  9. #9
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    .
    I tried a number of different ways to fully automate the input process however, the code errors. Using the Command Button click is the best I could do.

    Someone else might be able to obtain full automation for you.

  10. #10
    Registered User
    Join Date
    11-18-2017
    Location
    Sheffield, England
    MS-Off Ver
    Professional Plus 2016
    Posts
    6

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    Ah okay, no problem at all - Thanks, you've been a massive help!

  11. #11
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    You are welcome.

    Cheers

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    .
    Tino1010

    Here is an automated version however, I can't vouch for the functional accuracy. So long as the only data entry you make
    on the REGISTRATION sheet is in cell A2, it should not cause you any headaches. Entering data in any other location may cause
    the workbook to error.

    If anyone else would like to contribute .. please do so. Your suggestions are welcome.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-18-2017
    Location
    Sheffield, England
    MS-Off Ver
    Professional Plus 2016
    Posts
    6

    Re: Auto creation of multiple sheets and population of data from one main source (VBA Codi

    Amazing - Just tested with different sets of data and works perfectly!

    Data entry will always be cell A2 which hopefully will avoid any functional errors - Thanks again for all your help, really is appreciated!

+ 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. Auto population of data in multiple sheet from main sheet
    By rwalia07 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-12-2017, 08:57 AM
  2. Matching Multiple sheets data to a main sheet
    By Ryan29 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-05-2016, 10:21 AM
  3. Auto fill date into multiple sheets based on main sheet
    By lawrence24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2014, 08:53 AM
  4. Auto creation of sheets based on Data sheet with a sample output shown next to it
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-27-2013, 07:56 AM
  5. Create multiple lists based on main data source
    By GhostCookie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2012, 11:14 AM
  6. Replies: 1
    Last Post: 09-01-2012, 04:57 AM
  7. creating multiple sheet reports from main data source
    By Kolacube in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2011, 10:22 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