+ Reply to Thread
Results 1 to 8 of 8

Excel Workbook Data populating?

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    Canada
    Posts
    17

    Excel Workbook Data populating?

    Greetings all,
    I am in the midst of creating a workbook that basically captures data from the user on one sheet, then automatically populates 2 other sheets with this information. Call me a noob but i can't figure out.

    Attached is my sheet. It has the following tabs to give you a more understanding:
    Log - Gathers information from the Issue 1, Issue 2, etc..sheets
    Definitions - does nothing
    Stats - Gathers info from the log sheet
    Issue template - Template
    Issue 1 - User tosses in the info

    Also is it possible for excel to auto create tabs? For example Issue 1 is filled out, then it generates issue 2.

    Sorry to bother you guys.
    Thanks
    Attached Files Attached Files
    Last edited by VBA Noob; 04-13-2009 at 04:07 PM.

  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: Excel Workbook Data populating?

    This macro will create a new Issue for you based on incrementing the last Issue sheet currently in the workbook:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 04-13-2009 at 07:26 PM. Reason: Corrected code so that it COPIED the template instead of just adding a new sheet
    _________________
    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
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel Workbook Data populating?

    Actually, I thought a little automation linking the newly created Issue sheet to the next available row on the LOG sheet would be in order, so try this one instead:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-15-2008
    Location
    Canada
    Posts
    17

    Re: Excel Workbook Data populating?

    Thanks for the reply JBeaucaire! I will give it a shot

  5. #5
    Registered User
    Join Date
    10-15-2008
    Location
    Canada
    Posts
    17

    Re: Excel Workbook Data populating?

    Quote Originally Posted by JBeaucaire View Post
    Actually, I thought a little automation linking the newly created Issue sheet to the next available row on the LOG sheet would be in order, so try this one instead:
    Please Login or Register  to view this content.

    When I add this macro I get a "Type Mismatch" error. Where exactly should I be placing this macro? which sheet? Sorry, new with excel 2007
    Thanks.

  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: Excel Workbook Data populating?

    1. Open up your workbook.
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save your sheet.
    Here's a copy of the sheet with the macro installed.

    NOTE: When you set up the sheet to use the first time, there needs to be at least one sheet already there called Issue 1.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-15-2008
    Location
    Canada
    Posts
    17

    Re: Excel Workbook Data populating?

    Ahhh, I understand now! It works great!
    How do I get the Log information to update the stats though? What would be the most efficient way? another macro, or function?

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

    Re: Excel Workbook Data populating?

    EDIT: Sorry, the separate STATS sheet. No, I don't do much with charts and stuff. Perhaps over on the Charts forum.
    Last edited by JBeaucaire; 04-14-2009 at 04:51 PM.

+ 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