+ Reply to Thread
Results 1 to 10 of 10

Macro to collect data from Excel Form and populate multiple tabs

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    Papua New Guinea
    MS-Off Ver
    Excel 2010
    Posts
    5

    Macro to collect data from Excel Form and populate multiple tabs

    I need urgent help in arranging input from main sheet and populate other sheets arranged by year.

    I have an Excel worksheet for collecting court cases and arrange by year. I have one main sheet called 'main'. The main sheet (main) is a form that collects various court cases from 2005-2012. Once the each case is entered, the user click save button, which saves the information in the sheets (all name from 2005 to 2012).

    I can only save into just one sheet without arranging into years. I would like macro to copy from main sheet and paste in individual sheets based on the sheet name (year) and year entered.

    thanks

    Terry

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Help? Macro to collect data from Excel Form and populate multiple tabs

    Let's see this workbook. Click GO ADVANCED and use the paperclip icon to upload the workbook. Strip out any sensitive data, but leave some data there for reference and do not change the layout.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-19-2012
    Location
    Papua New Guinea
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need Help? Macro to collect data from Excel Form and populate multiple tabs

    Thansk JBeaucaire,

    Here's attachment. The years in the drop down menu - when selected, data entered should be copy into respective sheets (tabs)It is very much similar to one of your sample files (sheet1ToSheets-ParseMacros.xlsm). My worksheet - the main sheet collects data for each year (year dropdown list from 2005-2015) and when button is clicked (save button) - it copies the data and save in the corresponding sheet (named years). Just like the Managers in your example. I try to upload file but the upload feature in this website doesn't work. It gives error 500. May be my browser. Any help will be great. It is

    thanks much.
    Terry

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to collect data from Excel Form and populate multiple tabs

    Zip the file.

  5. #5
    Registered User
    Join Date
    03-19-2012
    Location
    Papua New Guinea
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Macro to collect data from Excel Form and populate multiple tabs

    File attached.

    thanks.

    Terry
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to collect data from Excel Form and populate multiple tabs

    So maybe this tweak:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-19-2012
    Location
    Papua New Guinea
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Macro to collect data from Excel Form and populate multiple tabs

    Nope...not working.

  8. #8
    Registered User
    Join Date
    03-26-2012
    Location
    India
    MS-Off Ver
    excel 2007
    Posts
    21

    Post Re: Macro to collect data from Excel Form and populate multiple tabs

    this will work

    Set historyWks = Worksheets(CStr(Cells(7, 8).Value))

  9. #9
    Registered User
    Join Date
    03-19-2012
    Location
    Papua New Guinea
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Macro to collect data from Excel Form and populate multiple tabs

    Yeah!!!! It worked... thank you so much, Rounakbhasin!!! Really appreciate your help.

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to collect data from Excel Form and populate multiple tabs

    If that takes care of your need, please click Thread Tools above your first post and mark this thread as SOLVED.

+ 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