+ Reply to Thread
Results 1 to 5 of 5

Copy certain sheets to a new workbook and maintain reference formulas

  1. #1
    Registered User
    Join Date
    11-18-2019
    Location
    Paris
    MS-Off Ver
    Office 2016
    Posts
    80

    Copy certain sheets to a new workbook and maintain reference formulas

    Hi there!

    I'm having an issue with saving selected sheets to a new workbook.
    In my case I want to save the sheets "AAA", "ABB", "ACA" to three different workbooks. But in every workbook, I want to also copy the sheet "Total" and "Total 2". When these sheets are included, I want to adapt the formulas to the new workbook and avoid external links.
    My guess was to create a list in my workbook of all the sheets and select these sheets with a loop:

    Please Login or Register  to view this content.
    But when I run the macro, an error occurs. Could you please help me?

    Many thanks!!

    Okela
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    536

    Re: Copy certain sheets to a new workbook and maintain reference formulas

    Try it like this.
    Please Login or Register  to view this content.
    Best Regards,
    Maras.

  3. #3
    Registered User
    Join Date
    11-18-2019
    Location
    Paris
    MS-Off Ver
    Office 2016
    Posts
    80

    Re: Copy certain sheets to a new workbook and maintain reference formulas

    Hi maras!
    Thanks it's working. However, I have an issue regarding the function within the worksheet "Total". Let's take the new workbook "ACA.xlsx" for example. The formula is:
    =COUNTA([CopySheetsExample.xlsm]AAA!E5:E55)

    I wish I could replace it accordingly with the correct workbook. Do you think it is feasible?

    Thanks!

    Okela

  4. #4
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    536

    Re: Copy certain sheets to a new workbook and maintain reference formulas

    I think this does what you want.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-18-2019
    Location
    Paris
    MS-Off Ver
    Office 2016
    Posts
    80

    Re: Copy certain sheets to a new workbook and maintain reference formulas

    Thanks Maras! Ended up doing it differently.
    Thanks again

+ 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. Replies: 4
    Last Post: 04-04-2016, 04:09 AM
  2. Unable to maintain Formulas between multiple workbook
    By alex5733 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2016, 01:40 AM
  3. Replies: 0
    Last Post: 07-01-2015, 03:33 PM
  4. Replies: 4
    Last Post: 11-01-2014, 06:11 PM
  5. Maintain Formulas / Cell reference help
    By wjsok85 in forum Excel General
    Replies: 4
    Last Post: 06-18-2009, 08:11 AM
  6. [SOLVED] sort source workbook data, maintain formulas in destination workb.
    By jfb191 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2006, 06:10 PM
  7. Copy worksheet & maintain cell reference across worksheets
    By dingy101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2006, 06:55 AM

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