+ Reply to Thread
Results 1 to 5 of 5

Creating mutiple workbooks from a template with different headers

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Creating mutiple workbooks from a template with different headers

    I need to create multiple workbooks from a template, but the header on the sheets need to change based on a list of numbers. I know you can generate multiple sheets from a template within the same workbook. Can you export all the sheets once they are generated to separate workbooks/files? Also I need to change the text in lets say cell A1 on every sheet based on a list from the main sheet. So the main sheet has a list in column A: 1, 2, 3, 4 etc. Once the sheets are generated from the template cell A1 on each generated sheet needs to have a different number from the list i.e. 1, 2, 3, 4 etc. It would be nice if i can set the format of cell A1 on the generated sheets so when then number is inserted it large text and bold. Hopefully this makes sense.

  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: Creating mutiple workbooks from a template with different headers

    You would format your TEMPLATE sheet with the large font you want in cell A1 before you started making copies of it and putting data into it. That's the point of a template, to have all the design and formatting done for you already.



    'FILL OUT A TEMPLATE FROM A DATABASE
    I have a macro for taking the data from a database sheet and filling out a template sheet over and over again with the data.The macro fills out the template and saves each one as a separate file OR creates a separate sheet, your choice. That last part can be tweaked to do other things, this is mainly to demonstrate a simple way to fill out a form from a row-based database.
    Last edited by JBeaucaire; 12-27-2019 at 03:56 AM.
    _________________
    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
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Creating mutiple workbooks from a template with different headers

    I am terrible with macros and I am trying to tweak the one you linked. I think I just to to tweak the bottom section. I have my list of headers in column A of the main sheet and each header needs to go into cell A1 of the workbooks created from the template. It would be nice to save each workbook so its name matches the headers in cell A1. Any more help is greatly appreciated.

    Determine last cell of data then loop through the cells one at a time
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 04-06-2014 at 05:56 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  4. #4
    Registered User
    Join Date
    09-03-2013
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Creating mutiple workbooks from a template with different headers

    I was able to figure it out. I modified the bottom section of the link JBeaucaire provided. The changes are below. Also I needed the headers from the main sheet to actually go into cell A2 of the workbooks created.

    'Determine last cell of data then loop through the cells one at a time
    Please Login or Register  to view this content.
    THANKS AGAIN FOR THE HELP!
    Last edited by JBeaucaire; 04-06-2014 at 05:56 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

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

    Re: Creating mutiple workbooks from a template with different headers

    Good job, you discovered the meaning and method of "'edit these rows to fill out your form, add more as needed"...

    See ya next 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] VBA help required: Creating multiple workbooks from a template and a list of names
    By CarolynL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2013, 04:16 AM
  2. Creating a template to use on multiple workbooks/pricelist
    By mrrickbarton in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-14-2013, 05:26 PM
  3. Creating Workbooks from a Master with template
    By bradwatt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-27-2011, 02:52 AM
  4. Workbooks("").Close Crashes Excel With Mutiple Workbooks Open
    By exs120 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2011, 03:24 PM
  5. Using mutiple workbooks
    By kevhardy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2010, 12:01 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