Copy all but without formulas including charts on worksheets to another workbook

Faysal Farooqui

New Member
Joined
Sep 25, 2017
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hello all.

I'm Faysal Farooqui. I'm working in a private company. I've to work whole days long with Microsoft Excel. Many of my workbooks with many worksheets I have to share with management. The Management do not need formulas. So, I share them workbooks without formulas (Copy+Value Paste) but keeping cell formatting. After adding few Charts on few Worksheets, It becomes difficult and time consuming to me:

- to copy each worksheet one by one,
- keep source formatting
- value paste
- copy charts and change it's source data

For clear understanding:
My workbook:
- Workbook_1 : contains 4 worksheets with cell formatting, charts on worksheets, formulas

My worksheets of Workbook_1 :
- ABC1 : contains sales report with Charts on Worksheet (Not Chart Sheet)
- ABC2 : contains sales report with Charts on Worksheet (Not Chart Sheet)
- ABC3 : contains sales report only
- ABC4 : contains sales report only

Now my problem is I want to apply a VBA Code that will auto generate many of my reports like above, that will copy entire Worksheets into other Worksheets of a new Workbook without formulas, keeping cell formatting and changing the charts source.

It would be a great help for me. Please pardon me if i have done something wrong.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Try this.
The following creates a new book with all the sheets, just save the new book.

VBA Code:
Sub Copy_all_without_formulas()
  Dim sh As Worksheet
  Application.ScreenUpdating = False
  Application.CopyObjectsWithCells = True
  Sheets.Copy
  For Each sh In Sheets
    sh.UsedRange.Value = sh.UsedRange.Value
  Next
End Sub
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0
What about, Faysal, if you provided the file as pdf. Would that be OK? Just use keys ALT-F-H-E-F
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,535
Members
449,037
Latest member
tmmotairi

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