+ Reply to Thread
Results 1 to 6 of 6

Insert page into multiple workbooks

  1. #1
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    163

    Insert page into multiple workbooks

    We have multiple workbooks on a shared drive, and I want to insert the same worksheet at the beginning of all the workbooks. We're talking about probably 60+ different workbooks. Is there a way to do this without going one by one?

    I use Excel 2007, but the workbooks are in the 97-03 format.

    Thanks!
    Last edited by OpieWinston; 09-02-2011 at 08:29 AM.

  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: Insert page into multiple workbooks

    1) All workbooks ready to go in a single folder?
    2) The files being opened, are they to be saved again in their original format, or updated to 2007 format?
    3) You have this worksheet to insert ready to go in another workbook, yes? This workbook is NOT in the same folder, yes?

    4) VBA is ok to use? A macro?
    _________________
    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
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    163

    Re: Insert page into multiple workbooks

    1) Correct. All workbooks are in the same folder, and all are ready for this worksheet.
    2) They will be saved in the 97-03 format.
    3) The worksheet I want to insert IS ready to be inserted, and it currently IS in a workbook in the same folder. This worksheet can definitely be moved to its own workbook in a different folder if needed.
    4) Only used it once, and it was a copy / paste thing. I'm not too familiar with VBA, but if you're able to walk me through implementing it, I don't see why it shouldn't work.


    The way this works is we have a separate workbook for separate companies, but they are all in the same folder. The worksheet I need to put into each one is meant to be a template to use for new jobs with each company. This is a fairly new template, so as management decides tweaks need to be made, I need to be able to re-insert the correct template back into all 60+ workbooks. My hope is that it will overwrite the old one by having the same name, but I do not know if this is possible.

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

    Re: Insert page into multiple workbooks

    Please Login or Register  to view this content.

    1) open the template workbook
    2) press Alt-F11 to open the VBEditor
    3) insert an empty standard code module (Insert > Module)
    4) paste the code given above into the module
    5) close the editor and save your template workbook in Excel 97-2003 format.

    To use the macro:

    1) Press Alt-F8 and select the InsertTemplate. It will open every file in the same directory and add/update the Template in each file.

  5. #5
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    163

    Re: Insert page into multiple workbooks

    You are my hero! Thanks!
    Last edited by OpieWinston; 08-31-2011 at 04:54 PM.

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

    Re: Insert page into multiple workbooks

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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