Excel worksheet functions

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Is there a way to select a range of cells and turn to
absolute all at the same time?
 
Joe

Only through VBA macro.

Sub Absolute()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula _
(cell.Formula, xlA1, xlA1, xlAbsolute)

'line above can be altered for varying references as below
'(cell.Formula, xlA1, xlA1, xlAbsRowRelColumn)
'(cell.Formula, xlA1, xlA1, xlRelRowAbsColumn)
'(cell.Formula, xlA1, xlA1, xlRelative)

End If
Next
End Sub

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top