Hello
Please can someone help me?
What I am trying to do is with the press of a button, copy sheet2 (which has formulas) as values only and then save that sheet as another file. But I need to keep the original sheet with the formulas.
My code (all beit test code) is:
But what I appear to get is the original sheet having value only in Sheet2 and not the original formulas.
The problem is, if some one in error then saves the *.xlsm file in error we would have to code the formulas again.
Thanks for your help
Please can someone help me?
What I am trying to do is with the press of a button, copy sheet2 (which has formulas) as values only and then save that sheet as another file. But I need to keep the original sheet with the formulas.
My code (all beit test code) is:
Code:
Sub Button1_Click()
Worksheets("Sheet2").Range("A1:F11") = Worksheets("Sheet2").Range("A1:F11").Value
Sheets("Sheet2").Copy
ActiveWorkbook.SaveAs "C:\Test.xls"
ActiveWorkbook.Close
End Sub
But what I appear to get is the original sheet having value only in Sheet2 and not the original formulas.
The problem is, if some one in error then saves the *.xlsm file in error we would have to code the formulas again.
Thanks for your help