I have a workbook for reporting. Every entry is a vlookup. I copy 4 sheets from this workbook into a new workbook as an "outfile" that keeps the numbers but removes the formula. I have a successful macro that copies the 4 sheets into a newly created workbook, but it keeps the sheets as is and does not remove formulas. I am trying to add code that removes the formulas, While there are several online sources for removing formulas, I am not able to adapt them to my macro.
Heres what I have so far: (the first 2 lines work, but adding the 3rd does not)
Sub outfile()
ThisWorkbook.Sheets(Array("Sheet 4","Sheet 5","Sheet 6","Sheet 7")).Copy
ActiveWorkbook.SaveAs "C:\example\outfile", FileFormat:=51
Workbook("outfile").Sheets(Array("Sheet 4","Sheet 5","Sheet 6","Sheet 7")).UsedRange.Value = Workbook("outfile").Sheets(Array("Sheet 4","Sheet 5","Sheet 6","Sheet 7")).UsedRange.Value
END SUB