+ Reply to Thread
Results 1 to 22 of 22

Can I automate the duplication of a spreadsheet for 92 different people?

  1. #1
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Can I automate the duplication of a spreadsheet for 92 different people?

    I have a template (attached) that I need to 'save' 92 times with the unique names in B5 for 92 different people.

    I will need to do this monthly. Is there a way to automate that process with a list of the 92 people?

    Let me explain the big picture....

    Over all, I'm looking at a very time intensive process to create and then update these forms weekly for each person (after running numerous reports to gather all the various information needed) and I'm trying to find the best most efficient way to do it.....any recommendations?

    I had thought of creating 12 tabs in the file, 1 for each month, and a summary page as well, to track the totals for each month at one glance. That way I only had 92 files instead of 92 people X 12 months = 1,104 files...but still.... and then at some point I KNOW the powers that be will want me to roll up the summaries to a company total....I am wide open to suggestions, but I do have to get moving on it as the data needs to start being collected next week....we've been developing the template and working out the numbers and formulas for a few weeks now.

    Thanks for all your thoughts!

    Carol
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    When you say save you mean as a separate workbook? Or separate Sheet?

  3. #3
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    I'm looking at 92 workbooks - because I think if I had 92 sheets it would corrupt.

    I'd rather have the 92 workbooks with 13 sheets instead.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    To my opinion it is much better to just use 1 worksheet (for the whole year) per employee.

    It makes it a lot easier to anlyse the data (e.g. with a pivot table).
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,974

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    I agree on 1 workbook for everything. Have 1 sheet for ALL data entry, then use 1 of many standard tools/formulas to extract the data exactly the way you want it

    As has been mentioned before in this forum, far too many people focus first on what the output needs to look like, then try and figure out how to the inputs to match their output - and this sounds like what you are kinda doing.
    This is completely the wrong way round. You need to first design the input, then once that is sorted out, and is in a nice tabulated format, the outputs become far easier to figure out. Looks and cosmetics are the last thing you need to worry about
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Hi Carol,

    This will create a book in the same folder as your "template" for every Name listed in Sheet2 Range "A1" on:

    Please Login or Register  to view this content.
    *did you want to add the sheets at this time because it's not coded for that?
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  7. #7
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Ford - I do appreciate your thoughts and I wish it was that simple. I can tell you that there was a great deal of effort put into percents, points and weights to figure out how this was going to even work, what the bare minimum standard will be, etc (which have been modified again even since I posted this question). As for the data collection, due to software and other systems currently in place it is a convoluted mixture of manual processes and numerous reports out of a program that doesn't do data collection well (very simple collection but not layered filters that I need) - so the collection part of this whole process is going to be a big mess and several people - our software just doesn't support what we are trying to do and we hope that we will be able to drag our software (probably kicking and screaming) into doing what we need, but until we can get a working expectation, it means nothing to them. The looks are definitely the last thing, because as far as I am concerned, this is a very basic layout and simplistic cosmetics (and at that my boss is wildly impressed with the whole thing - go figure).

    xladept - I haven't worked out the summary sheet yet, but your suggestion would save me tons of time.....if I did create the summary sheet, in addition to creating all the additional sheets, would it be able to link all the data between the monthly sheets and the summary sheet? That would be the moon and more! Your reputation to me would be over the top! (which it already is because you've told me what I think I should be able to do is doable!)

    Thank you for all your help .... I am out of the office for the weekend now, so I will not be checking back in until Monday, but any ideas, again, are very welcomed. This is an amazing group of people willing to help out!

    Carol

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Hi Carol,

    The linking would be in Ford's realm - I'm a VBA programmer and would do it with code

    But why not set it up with an actual template (.xltm) with the 13 sheets and just open from the template itself?
    Last edited by xladept; 08-21-2015 at 06:28 PM.

  9. #9
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    xladept - Setting it as a template didn't even occur to me - I do that in Word, so I'm not sure why it didn't. That's a great idea! Would I still be able to use the coding to create 92 workbooks from it? (Probably a stupid question, huh? ) I really do love automating as much as possible. I am almost ready to get to that stage of this project. We have one last meeting this afternoon to discuss final details and then I will need to get it ready for data collection for each employee for 1 week of August as a test and then the full blown for September.

    Thanks, Carol

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Sure - you can still use code to create any number of workbooks from your template

  11. #11
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    xladept - Your code only copies the 1 worksheet. I have 14 sheets that need to all go together, except for the 15th one that has all the names. How do I change it to copy the entire workbook? change Worksheet to Workbook?

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Hi Carol,

    I understood that all the names of the sheets would be in sheet 2?? What is the actual situation?

    Can you:Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  13. #13
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Xladept,
    It was originally, however, once the tally sheet was completed, we realized we needed it for 12 months and a summary page...so the actual list of caregivers is on Sheet15 - which I adjusted for that, but it was only copying the Summary page into each file...see attached, I have scrubbed it with Sesame Street again. I only entered a few names, there are 92 in reality. I did attempt to play with the code, but it wasn't working.....

    The desired results is the entire workbook minus sheet15 for each of the people listed on sheet15...in the same folder the template is located in.

    Thanks, C
    Attached Files Attached Files

  14. #14
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Hi Carol,

    I'll try to puzzle it out tomorrow

  15. #15
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Hi Carol,

    This works - see whether it's acceptable:

    Please Login or Register  to view this content.
    To Insert the names in B5 you'll need the password: (I see that it's C6 now!)

    Please Login or Register  to view this content.
    Last edited by xladept; 09-02-2015 at 07:42 PM.

  16. #16
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    xladept,
    Thank you for this - I can see you put some work into it.

    The first code works, but does not enter the name into the file.

    The second code is hanging at the ws.Unprotect (Password) line - and if I remove it and change the Range to C4 (the cell on the Summary Sheet that is unprotected and the one everything else is linked too) it still hangs at ws.Range.....and if I move Application and wt.sheets.....delete to after the changing of the name, it still hangs at the ws.Unprotect or the ws.Range if I remove the ws.Unprotect.

    ideas?

  17. #17
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    xladept.....
    Wonderful! Let me share what I did to it.....

    It took me some time, but I finally figured out that I had to enter the actual password (duh, right?) and it started telling me the password was not correct so I wondered if placing "" around the password would help and it did.

    I had set up C4 on the Summary page to auto linked to the C6 on all of the other sheets to fill in the name, but once I figured out what you wrote this to do, I moved that C4 to C6 on the Summary Page and just let the code overwrite everything.

    It does error at wt.SaveAs P & "\" & Wlist(r, 1) when the names run out, but that's ok, that just means I'm done and I can stop the run.

    I really do appreciate your assistance and time! It's moving slowly, but faster than it would have taken to do it all manually and I can leave it running and do other tasks, so this is perfect! In the time it took me to write this message it completed 24 copies.

    Hmmmm, 1 didn't save properly, I think because it had a "." after the middle initial at the end of the name, so I should have a few of those that will need to be corrected and re-run. It's all about the integrity of the data, isn't it!

    Really, thank you again!

    Carol

  18. #18
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Going off on a different tack, would this not be better done as a single .xltm file that any user opens which records the data into one central database? so you end up with a database table(s) containing all of the entries for all of the users and all of the periods in one big list that can then be manipulated, sorted, displayed etc however you want?
    If someone has helped you then please add to their Reputation

  19. #19
    Forum Contributor
    Join Date
    08-10-2015
    Location
    Sarasota, FL
    MS-Off Ver
    MS 365
    Posts
    77

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    PJ - I am absolutely positive there is a better way! I didn't have time to figure out what that was because I had to have something ready this week to start collecting data. However, now that I have something to start collecting, I can work on a better way - because this is only going to get bigger as we add staff.

    I've worked with databases so I get what you mean, but I haven't done so within Excel, so it didn't occur to me to do it within Excel. And the fact that I am dealing with 5 other office staff members that will be adding their pieces of data into the reports as well (hence the reason it is all locked down with the exception of the entry fields), left me with something that needed to be easy for them (they are very basic excel users at best).

    I need a faster/better way to round up all the data out of my software as well. The reports my software provide are very simplistic and I need to group, sun, count, and compare in order to enter into the score card - not to mention changing the format of the date and time fields - the raw data is really raw.

    I guest that is a long-winded way to say, yes, a better way, I am totally open to that and I'm open to learning how to do that (I've learned so much in the month we've been dealing with getting this started), I just need some direction from someone(s) more experienced in what Excel can do for me than I am.....because I do not have access to ACCESS.

    Ideas? Carol

  20. #20
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Hi Carol,

    Thanks for the rep!

    I hope that part of it is straight now?

    Hey, PJ, I suggested a template back in post #8

  21. #21
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    Quote Originally Posted by xladept View Post
    Hi Carol,
    Hey, PJ, I suggested a template back in post #8
    YOu did....but I added the far cooler part of linking that to a database

  22. #22
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Can I automate the duplication of a spreadsheet for 92 different people?

    @ PJ - Far cooler, perhaps even coolest!

+ 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. How to automate duplication of many coulumns in Excel?
    By khandan in forum Excel General
    Replies: 5
    Last Post: 11-20-2014, 09:21 PM
  2. [SOLVED] How can I automate the duplication of a row when the use tabs out of the last cell?
    By AAbrams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2013, 10:56 AM
  3. Need help with a spreadsheet I want people to see on the web
    By pglufkin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2013, 05:28 PM
  4. duplication of spreadsheet data.
    By oneblondebrow in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2013, 07:37 PM
  5. 2 people working on the same spreadsheet?
    By burnsie in forum Excel General
    Replies: 2
    Last Post: 01-14-2013, 11:36 AM
  6. Stop people pasting in to a spreadsheet
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 01-04-2011, 06:46 AM
  7. Automate a single form to be sent to 300 people
    By jehhyun in forum Excel General
    Replies: 3
    Last Post: 01-11-2008, 04:40 PM

Tags for this Thread

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