Hi
I want to use the given VBA code to convert the formulas into values
but I want that if a sheet or cell is locked the code should be applied without unlocking the sheet or cell
and I also want that this code should work when the date value entered in sheet2.range ("B2") is < then the current date
for example if in B2 date is 12/05/2020 and when 13/5/2020 comes the macro code should automatically run
I want to use the given VBA code to convert the formulas into values
but I want that if a sheet or cell is locked the code should be applied without unlocking the sheet or cell
and I also want that this code should work when the date value entered in sheet2.range ("B2") is < then the current date
for example if in B2 date is 12/05/2020 and when 13/5/2020 comes the macro code should automatically run
VBA Code:
Sub FormulaToValue()
Dim N As Long, rng As Range
N = Cells(Rows.Count, "A").End(xlUp).Row
Set rng = Range(Cells(1, 1), Cells(N, Columns.Count))
rng.Value2 = rng.Value2
End Sub