+ Reply to Thread
Results 1 to 6 of 6

Automatic Sheet Generation Macro

  1. #1
    Registered User
    Join Date
    07-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Automatic Sheet Generation Macro

    Hi guys.. I really need help with making this..

    I am attaching a mock sheet...

    I need to automatically generate sheets inside an excel file ..

    The Ingredient Recipes is the first sheet.. on this sheet the first row (in yellow) is from where the names for each new sheet should come.. Lemon Mustard, Falafel, Iceberg Lettuce.. Etc. Then step two in the macro would be to copy the contents (with all the formulas) of the sheet named Template into each of these new sheets that were generated .

    In the mock file I added the lemon mustard sheet.. That's what a new sheet would look like once the macro has worked.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-14-2011
    Location
    New York, USA
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Automatic Sheet Generation Macro

    To create the template sheet:
    (my template is named "template_ev", and "newpath" is a variable I set to be "activeworkbook.path")

    Please Login or Register  to view this content.
    Then, make your list of variables into a named range.

    Then, use
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Automatic Sheet Generation Macro

    Hey Awan.. . Thank you so much!!! I think I need a little more help..

    Since I have pretty much no clue about how to use vba... I copied this into a module as follows:
    Please Login or Register  to view this content.

    I am not sure what to change around to make it work.. because it doesn't for some reason..

    I really appreciate your help!!!
    Last edited by Leith Ross; 07-20-2011 at 04:55 PM. Reason: Added Code Tags

  4. #4
    Registered User
    Join Date
    07-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Automatic Sheet Generation Macro

    can you by any chance put the code into the excel sheet attached.. unfortunately i am not sure how to adjust it to make it work..

  5. #5
    Registered User
    Join Date
    06-14-2011
    Location
    New York, USA
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Automatic Sheet Generation Macro

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Automatic Sheet Generation Macro

    wow.. thats amazing!! thank you so much!!!!


+ 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