Hi there
I need to save the file as a new workbook (asking user to choose path) and within that file, remove all formulas.
The code I am using to remove all formulas is:
This works however on one of the sheets I want to leave the formulas in there.
Also, you can see that I added a formula back in which works except it's not copying down to last row, only appears in cell I3?
Grateful for advice on any of this as I'm not sure how I'm going to incorporate this with saving a new workbook?
Many thanks
I need to save the file as a new workbook (asking user to choose path) and within that file, remove all formulas.
The code I am using to remove all formulas is:
Code:
Sub All_Cells_In_All_WorkSheets_1()
Dim sh As Worksheet
Sheets("ImportNonCCB").Visible = True
Sheets("LKUPs").Visible = True
For Each sh In ActiveWorkbook.Worksheets
sh.Select
With sh.UsedRange
.Cells.Copy
.Cells.PasteSpecial xlPasteValues
.Cells(1).Select
End With
Application.CutCopyMode = False
Next sh
Sheets("CC Reconfiguration Data").Range("I3" & LastRow) _
.Formula = "=VLOOKUP(tblCCReconfig[Control Centre Company Builds],Table6[[Control Centre Company Builds]:[POA GDS]],6,0)"
End Sub
This works however on one of the sheets I want to leave the formulas in there.
Also, you can see that I added a formula back in which works except it's not copying down to last row, only appears in cell I3?
Grateful for advice on any of this as I'm not sure how I'm going to incorporate this with saving a new workbook?
Many thanks