Try these. Ignores cells without formulas.
Sub Absolute()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, _
xlA1, xlA1, xlAbsolute)
End If
Next
End Sub
Sub AbsoluteRow()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, _
xlA1, xlA1, xlAbsRowRelColumn)
End If
Next
End Sub
Sub AbsoluteCol()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, _
xlA1, xlA1, xlRelRowAbsColumn)
End If
Next
End Sub
Sub Relative()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, _
xlA1, xlA1, xlRelative)
End If
Next
End Sub
Gord Dibben MS Excel MVP
On Mon, 12 Jun 2006 12:31:06 -0500, lostinformulas
<
[email protected]> wrote:
>
>I have a long formula that I have applied in multiple cell once it is in
>the cell I need this formula to be absolute.
>
>Is there an easy way or do i have to go into each cell and add the $??
>
>=IF(AND('1'!$A70="yes",'1'!$AP70="yes",'1'!$AT70="Express",'1'!$D70="yes"),0.5,IF(AND('1'!$A70="yes",'1'!$AP70="yes",'1'!$AT70="express"),1,""))
Gord Dibben MS Excel MVP
Bookmarks