+ Reply to Thread
Results 1 to 5 of 5

Create multiple workbook copies from one workbook and change data within every

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Create multiple workbook copies from one workbook and change data within every

    Hi Guys,

    I have one big workbook and i want this workbook to be copied several times based on my input data (but without changing main workbook - it is only pattern).

    What is the best code to do this?

    I thought about doing:
    1. Save main workbook as copy
    2. Open this new workbook and change data based on main workbook.
    3. Close the new created workbook and create new copy of main workbook.

    I have to have open all time my main workbook and copy of it in the same time,
    but i think saving copy of main workbook and opening it every time will be not efficient.

    please help,
    Jacek

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Create multiple workbook copies from one workbook and change data within every

    Use SaveCopyAs instead of SaveAs and your original workbook will remain open.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Create multiple workbook copies from one workbook and change data within every

    JLGWhiz thank you,

    but still i have to open new saved workbook...

    It is another way?

    Jacek

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Create multiple workbook copies from one workbook and change data within every

    Quote Originally Posted by jaryszek View Post
    JLGWhiz thank you,

    but still i have to open new saved workbook...

    It is another way?

    Jacek
    The only other suggestion I have is to use SaveAs, but in the same macro, immediately re-open the original workbook:

    Example:
    Please Login or Register  to view this content.
    This would have both both workbooks open for editing and updating while maintaining the integrity of the original file.

  5. #5
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Create multiple workbook copies from one workbook and change data within every

    thank you,

    i think that it is not what i want exactly. Still you have to opening workbook.

    Thank you!
    Best Wishes,
    Jacek

+ 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. Create copies of a workbook named after each day of the month.
    By Rigoberto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2013, 08:00 AM
  2. Create a macro which creates a workbook and copies rows to it
    By jmatthews in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2013, 01:09 PM
  3. searching for specific data in one workbook and copies it to a 2nd workbook
    By baltazar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2012, 02:03 PM
  4. Replies: 0
    Last Post: 07-27-2011, 09:48 PM
  5. Workbook opens multiple copies
    By mba1 in forum Excel General
    Replies: 3
    Last Post: 04-03-2007, 03:10 PM
  6. [SOLVED] quickly create extra copies of a worksheet template in a workbook
    By simon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2005, 03:05 PM
  7. multiple copies of same workbook
    By Bongo62 in forum Excel General
    Replies: 2
    Last Post: 04-28-2005, 08:06 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