save or print a Excel file as a formula-free Excel file

lalbatros

Well-known Member
Joined
Sep 5, 2007
Messages
659
Hello,

I have been using the pdf format since long, to send reports based on multiple sheets from a workbook.
Now, the XL2010 built-in pdf printing feature in quite nice.
I have also given a try to the xps format.

However, most people receiving my reports would preffer to receive an Excel file.
An Excel file is far more convenient for copying data when they need to.
Unfortunately, I could not send the full Excel file to my collegues.
This is because of the complex logic behind this workbook: some 100 pages, connections to about 10 big tables on an sql server, 25 Mbytes, some user-defines functions, and a VSTO package supporting it, many pivot tables.

How would you suggest me to proceed?
Would there be a simple way to "print" a subset of the sheets to another Excel file, keeping the data and the charts and maybe the (local) hyperlinks, but removing macros, formulas, connections.
I would of course prefer a simple solution, almost as simple a printing to a pdf file.

Thanks,

Michel
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
try this code...your new workbook will be saved under the same folder with the name as new.xls

Code:
Sub save_macro_free()
Dim neo As Workbook
Save_Filename = ActiveWorkbook.path & "\" & "new" & ".xls"
With neo
        Dim sh As Object
        ThisWorkbook.Activate
        For Each sh In ThisWorkbook.Sheets
            sh.Select False
        Next sh
        ThisWorkbook.Windows(1).SelectedSheets.Copy
        Set neo = ActiveWorkbook
        neo.SaveAs Filename:=Save_Filename, FileFormat:=xlExcel8, CreateBackup:=False
        neo.Close
End With
End Sub
 
Upvote 0
Thanks!

But would it be possible to have all formulas removed, as well as all links?
Roughly, I would like the xl-printout to be nearly like a pdf except that it would keep the spreadsheet structure.
 
Upvote 0

Forum statistics

Threads
1,224,508
Messages
6,179,189
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top