$ symbol in a formula
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)
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)
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)
Next
End Sub
Gord Dibben MS Excel MVP
On Thu, 18 Sep 2008 07:39:02 -0700, RAB2685
wrote:
Is there a way to highlight a bunch of formula's and automatically have the $
sign added before the column identifier and the row identifier versus going
into ever formula in every cell and manually enteringr the $ sign before each
column or row indentifier? I understand the drag and auto fill which works
perfect since my worksheets are all set up in the same format, but now I'm
having to go into every cell to add the $ to lock where it is retrieving the
info. from - very time consuming - any suggestions?
|