+ Reply to Thread
Results 1 to 6 of 6

Create copy of multiple worksheets and automatically fill in data from a main sheet

  1. #1
    Registered User
    Join Date
    02-22-2008
    Posts
    8

    Create copy of multiple worksheets and automatically fill in data from a main sheet

    What I have is master sheet that I use to generate batch sheets for lab experiments. Typically I have to create each batch sheet by hand by using a macro to create multiple copies of a template. Then I go through to each batch sheet and do a copy and fill operation by hand to get the information from the main sheet. The problem is that I need to do this very often with up to 100 experiments. What I want to do is automate the entire process using a macro that creates the copies and subsequently auto fills the sheets based upon the tab number. Inside the attached workbook is a macro that does the copy process, what I need to do is modify this to also do the copy and fill process.

    I don't recall where I came across the copy macro, but I do not know how to use VBA well at all.

    Any help would be appreciated. Thank you.

    Allen
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello NMChemEng,

    After downloading your file and trying to run it, Excel crashes. The file appears to be corrupted. I think you should re-zip the file and post it again.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    02-22-2008
    Posts
    8
    My apologies, it looks as if some plug-ins for ASPEN were trying to load.

    Allen
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello NMChemEng,

    I realize you can do this in your sleep if you have to do this for up to 100 experiments. Can you give me a step by step using just one template? I'm looking at this and getting lost.

    Thanks,
    Leith Ross

  5. #5
    Registered User
    Join Date
    02-22-2008
    Posts
    8
    I populate the master sheet with the experiments of interest.
    I select the template of interest.
    Then edit the macro CMW to create the sheets for the experiments of interest. Then run the macro CMW.
    I then go to the created sheets and individually select cell A51 and set it to point to the line the corresponds to the batch (count on the master sheet) of the tab. Then do a fill to fill the rest of row 51 with the data for that batch. Then repeat for each sheet.

    The CMW macro will duplicate the selected tab and number them from based upon the counter for the macro. I Edit this macro to have the counter run for the batches needed.

  6. #6
    Registered User
    Join Date
    02-22-2008
    Posts
    8
    Was the above helpful?

    Thanks,

    Allen

+ 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