I have a Master file Report that has 189 Sheets. They are one page data results per a particular sales region. The data in the report results in multiple VLookUPs from many other data sources.
I have to email this report, but want to copy it and paste it as values so not so large with all the look up. How do I do this without going into each sheet copying and re pasting as values? Can I copy the entire Workbook and past as values?
Microsoft Excel
Last Comment
mishlce
8/22/2022 - Mon
dlmille
You can in a few steps. Select each tab, all cells top left of the formula bar at the intersection of column names and row numbers, then hit Copy, PasteSpecial, Values.
Or, you can use this code:
Sub pasteValues()Dim wkb As WorkbookDim wks As Worksheet Set wkb = ActiveWorkbook For Each wks In wkb.Worksheets wks.Cells.Copy wks.Cells.PasteSpecial xlPasteValues Application.CutCopyMode = False Next wks MsgBox "Process Complete!"End Sub
Hit ALT-F11 to go to the VBA Editor, on the left, find your workbook and click on ThisWorkbook, then Right Click and INSERT MODULE. Copy/Paste this code, there.
Then, Run the code - e.g., hit F5 which should make that workbook values only.
Alternatively, if you have PDF Writer capability, you could print each sheet to PDF and mail that.
Hope this helps. Let me know if you need help integrating the macro.
Or, you can use this code:
Open in new window
Hit ALT-F11 to go to the VBA Editor, on the left, find your workbook and click on ThisWorkbook, then Right Click and INSERT MODULE. Copy/Paste this code, there.
Then, Run the code - e.g., hit F5 which should make that workbook values only.
Alternatively, if you have PDF Writer capability, you could print each sheet to PDF and mail that.
Hope this helps. Let me know if you need help integrating the macro.
Dave