+ Reply to Thread
Results 1 to 17 of 17

Copy of workbook without formulas

  1. #1
    Registered User
    Join Date
    09-07-2012
    Location
    England
    MS-Off Ver
    Excel 365 (Version 2205)
    Posts
    25

    Copy of workbook without formulas

    Hello!

    How can I:

    1. Save a copy of a whole workbook with only text (removing all formulas).
    2. Keep the original file intact with all formulas.

    Thanks!
    Last edited by Voluntas; 07-05-2022 at 04:11 AM.

  2. #2
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Save workbook without formulas

    I can only think of a VBA soloution for this.

    This will take your current workbook, convert all the Formulas to their values and then save it as another Workbook with a "No formulas" suffix on the end so the original Workbook will still exist.

    Please Login or Register  to view this content.

  3. #3
    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,939

    Re: Save workbook without formulas

    You could cop/paste values before you save?
    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

  4. #4
    Registered User
    Join Date
    09-07-2012
    Location
    England
    MS-Off Ver
    Excel 365 (Version 2205)
    Posts
    25

    Re: Save workbook without formulas

    Thanks for your reply!

    For some reason, the document freezes when I run the code though.

  5. #5
    Registered User
    Join Date
    09-07-2012
    Location
    England
    MS-Off Ver
    Excel 365 (Version 2205)
    Posts
    25

    Re: Save workbook without formulas

    Quote Originally Posted by FDibbins View Post
    You could cop/paste values before you save?
    The problem is that the formulas need to be active, to keep the document updated with the latest information.

  6. #6
    Registered User
    Join Date
    07-05-2017
    Location
    Belgium
    MS-Off Ver
    Microsoft 365
    Posts
    32

    Re: Save workbook without formulas

    Your original question was How can I make a copy of a whole workbook, saving everything except the formulas?
    .
    So copy pasting everything then save as would do the trick.
    No?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,990

    Re: Save workbook without formulas

    You can set formulae to be hidden, which might better suit your purposes.

    I agree - your opening post and title do not hint at the need for the formulae to continue to be active, which makes it an entirely different proposition.

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Copy of workbook without formulas

    My code works on a test file that I created of 3 Worksheets with some basic formulas thrown in.

    It basically takes the current Workbook, copies and pastes all the sheets as values and then saves it as a copy of the Original with a suffix so you can easily identify it and distrubute it without any links to other workbooks etc.

    The original workbook you run the code in will still have the Formulas so it can be updated.

    Not sure why it would freeze anything up though, the only thing I can think of is that you've run it in a Macro enabled Workbook (.xlsm) when I'm trying to save it as a normal (.xlsx) file, though I'd expect an error and not a freeze.

    Anyways, this should account for that;

    Please Login or Register  to view this content.
    If that still doesn't work and if my soloution seems like something you could work with then post a sample of your Workbook as per the instructions on the top Yellow Bar above and we can go from there.

  9. #9
    Registered User
    Join Date
    09-07-2012
    Location
    England
    MS-Off Ver
    Excel 365 (Version 2205)
    Posts
    25

    Re: Save workbook without formulas

    @AliGW

    Yes, I also agree! I have updated the question (and information about my version of Excel - 365 version 2205). Sorry about that.
    Last edited by AliGW; 07-05-2022 at 04:33 AM. Reason: PLEASE don't quote unnecessarily!

  10. #10
    Registered User
    Join Date
    09-07-2012
    Location
    England
    MS-Off Ver
    Excel 365 (Version 2205)
    Posts
    25

    Re: Copy of workbook without formulas

    @PaulSP8

    I tried on new workbook, worked fine. Thanks! The only problem I need to solve is how to keep the formulas in the original file (I have updated my original question to reflect that need - sorry about that).
    Last edited by AliGW; 07-05-2022 at 04:33 AM. Reason: PLEASE don't quote unnecessarily!

  11. #11
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Copy of workbook without formulas

    The formulas should be in the original file?

    The code saves the Workbook as a copy leaving the original intact?

  12. #12
    Registered User
    Join Date
    09-07-2012
    Location
    England
    MS-Off Ver
    Excel 365 (Version 2205)
    Posts
    25

    Re: Copy of workbook without formulas

    Yes, the original workbook should still have the formulas. The copy should have no formulas, only the values from the formulas from the original file.
    Last edited by AliGW; 07-05-2022 at 05:50 AM. Reason: PLEASE don't quote unnecessarily!

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,990

    Re: Copy of workbook without formulas

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter and rarely necessary.

    If you are responding out of sequence, it is usually enough just to mention the helper's user name (e.g @AliGW).

    If you do need to quote, limit the quoted section just to the section to which you wish to draw your helper's attention or a direct question to which you wish to respond.

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  14. #14
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Copy of workbook without formulas

    I'm confused, that's what my code is doing.

    I've attached a sample workbook.

    Download it to a folder on your PC.

    Run the Voluntas Macro.

    You'll then have two workbooks in that folder - "Voluntas.xlsm" and "Voluntas No Formulas.xlsx"

    "Voluntas" will have formulas, the other won't.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    09-07-2012
    Location
    England
    MS-Off Ver
    Excel 365 (Version 2205)
    Posts
    25

    Re: Copy of workbook without formulas

    Thanks for your help guys!

    I tried the macro and the formulas convert to text for both "Voluntas.xlsm" and "Voluntas No Formulas.xlsx".

  16. #16
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Copy of workbook without formulas

    Then, that's odd. I've tried it in both Excel 2013 and 2021 and it works.

    I don't understand how "Voluntas.xlsm" is getting converted to text, as soon as it's 'saved as' "Voluntas No Formulas.xlsx" then "Voluntas.xlsm" should be forgotten entirely, there is nothing there that should save any changes to that Workbook

    It shouldn't even be left open when the code has finished to give an option to manually save changes.

    Sorry, but I'm at a loss now and I've no way of testing it on 365 to see if I can find anything that way.

    Hopefully someone else can come along and see what the differences could be.

  17. #17
    Registered User
    Join Date
    09-07-2012
    Location
    England
    MS-Off Ver
    Excel 365 (Version 2205)
    Posts
    25

    Re: Copy of workbook without formulas

    Thanks for your help anyway! This forum is amazing!

+ 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: 0
    Last Post: 03-05-2020, 01:16 AM
  2. Copy Paste Between workbooks, Sort, Formulas Filling.
    By drgkt in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 01-10-2016, 03:47 PM
  3. Replies: 4
    Last Post: 12-17-2014, 12:42 PM
  4. Macro to copy formulas from multiple workbooks into new workbook (paste text of formula)
    By robertsfd2002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2014, 12:46 PM
  5. [SOLVED] How do I copy and paste formulas between workbooks?
    By tezza in forum Excel General
    Replies: 4
    Last Post: 07-06-2006, 02:00 PM
  6. [SOLVED] Display 2 formulas from source workbooks to destination workbooks
    By Excel_seek_help in forum Excel General
    Replies: 4
    Last Post: 04-27-2006, 03:20 PM
  7. [SOLVED] Copy worksheets with formulas between different workbooks
    By Tim in forum Excel General
    Replies: 3
    Last Post: 03-31-2005, 08:17 AM

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