Thanks for your reply.
After i put the following code, it still doesn't work.
On the sheet "before macro", it still turn to value# (cell A 1to B7)
By the way, should i change sheets(1) of the macro to sheet(before macro)?
With Sheets(before macro) 'the number being the sheet you want to run code on
instead of
With Sheets(1) 'the number being the sheet you want to run code on
Sub Absolute()
Dim cell As Range
With Sheets(1) 'the number being the sheet you want to run code on
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula _
(cell.Formula, xlA1, xlA1, xlAbsolute)
End If
Next
end with
End Sub
Moreover, the 2nd macro you write may be incomplete. what is the purpose of macro?
Sub Absolute()
Dim cell As Range
'Sheets(1).Select or Sheets(1).Activate The number being the sheet you want to run the code on.
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula _
(cell.Formula, xlA1, xlA1, xlAbsolute)
End If
Next
Bookmarks