ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   changing from relative to absolute cell reference in multiple form (https://www.excelbanter.com/excel-worksheet-functions/89798-changing-relative-absolute-cell-reference-multiple-form.html)

JAaron

changing from relative to absolute cell reference in multiple form
 
Is there a way to change relative cell refernces in multiple formulas from
relative to absolute all at the same time, rather than highlighting refernce
and hitting F4 and changing them one at a time. I have to change several
hundred formula references from relative to absolute.

Ardus Petus

changing from relative to absolute cell reference in multiple form
 
Sub AbsFormula()
Dim rcell As Range
For Each rcell In ActiveSheet.UsedRange.SpecialCells(xlFormulas)
rcell.Formula = Application.ConvertFormula( _
rcell.Formula, xlA1, xlA1, xlAbsolute)
Next rcell
End Sub

HTH
--
AP

"JAaron" a écrit dans le message de news:
...
Is there a way to change relative cell refernces in multiple formulas from
relative to absolute all at the same time, rather than highlighting
refernce
and hitting F4 and changing them one at a time. I have to change several
hundred formula references from relative to absolute.





All times are GMT +1. The time now is 04:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com