Sub toNew()
Dim ws As Worksheet
Sheets(Array("Sheet1", "Sheet2")).Copy
For Each ws In ActiveWorkbook.Worksheets
ws.UsedRange.Value = ws.UsedRange.Value
Next ws
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs "c:\myfile.xlsx"
Application.DisplayAlerts = True
End Sub
|