user3307,
Don't people use their names any more??
You can do this a few ways.
Better:
Select all the formulas on sheet "a" with cell references, and run the first macro. Then reload the
sheets "x, y and z", and then re-select all the formulas on sheet "a" with cell references, and run
the Second macro.
Less Good:
Or replace all the cell references in all your formulas with INDIRECT function calls - very tedious,
and prone to error, so not really recommended.
HTH,
Bernie
MS Excel MVP
Sub SAFormulaToText()
Dim myCell As Range
Dim myCalc As Variant
With Application
.ScreenUpdating = False
myCalc = .Calculation
.Calculation = xlCalculationManual
.EnableEvents = False
End With
On Error Resume Next
For Each myCell In ActiveSheet.UsedRange.SpecialCells(xlCellTypeFormulas)
myCell.Formula = "'" & myCell.Formula
Next myCell
With Application
.ScreenUpdating = True
.Calculation = myCalc
.EnableEvents = True
End With
End Sub
Sub SATextToFormula()
Dim myCell As Range
Dim myCalc As Variant
With Application
.ScreenUpdating = False
myCalc = .Calculation
.Calculation = xlCalculationManual
.EnableEvents = False
End With
On Error Resume Next
For Each myCell In Selection
myCell.Formula = myCell.Text
Next myCell
With Application
.ScreenUpdating = True
.Calculation = myCalc
.EnableEvents = True
End With
End Sub