REMOVING WORKBOOK'S ALL FORMULAS

F

FARAZ QURESHI

I have a workbook consisting around 20 sheets. I want to copy all the same to
a new workbook with only values. Any shortcut how to remove all the formulas
instead of copy>paste special>values>ok on every sheet?
 
G

Gary''s Student

In the new workbook, do you want the formulas replaced by blanks or by the
values from the old workbook?
 
G

Gary''s Student

Forgive a Student's lack of attention. Perhaps this macro can be adapted to
meet your needs:

Sub Macro1()
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:="C:\Documents and Settings\Owner\My
Documents\copy.xls"
For Each sh In Sheets
sh.Activate
Cells.Select
Selection.Copy
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues
Next
ActiveWorkbook.Save
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top