ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Absolute referencing (https://www.excelbanter.com/excel-discussion-misc-queries/201424-absolute-referencing.html)

Keith

Absolute referencing
 
I want to change all references to cells on work sheet 1, to absolute cell
references? Is there any way I can change every cell reference in every
formula in every cell in one go, or do I have to edit every single cell.
Example of sheet data:-
=IF(ISNA(BP$74),"VB","") to equal =IF(ISNA($BP$74,"VB","") etc.

(A$3,BP$3:BP$13,1,FALSE) to equal ($A$3,$BP$3:$BP$13,1,FALSE)

I'm using Office 97!!

Thanks Keith

Mike H

Absolute referencing
 
Hi,

Right click the sheet tab, view code and paste this in and run it.

Sub versive()
Dim MyRange As Range
Set MyRange = ActiveSheet.UsedRange
For Each c In MyRange
If c.HasFormula Then
c.Formula = Application.ConvertFormula(c.Formula, xlA1, xlA1, xlAbsolute)
End If
Next
End Sub

Mike

"keith" wrote:

I want to change all references to cells on work sheet 1, to absolute cell
references? Is there any way I can change every cell reference in every
formula in every cell in one go, or do I have to edit every single cell.
Example of sheet data:-
=IF(ISNA(BP$74),"VB","") to equal =IF(ISNA($BP$74,"VB","") etc.

(A$3,BP$3:BP$13,1,FALSE) to equal ($A$3,$BP$3:$BP$13,1,FALSE)

I'm using Office 97!!

Thanks Keith


Pete_UK

Absolute referencing
 
You can use Edit | Replace (or CTRL-H) to find eg BP and replace with
$BP, find (A and replace with ($A etc and do this a few times
depending on how many different column references you use.

Hope this helps.

Pete

On Sep 5, 8:59*am, keith wrote:
I want to change all references to cells on work sheet 1, to absolute cell
references? *Is there any way I can change every cell reference in every
formula in every cell in one go, or do I have to edit every single cell.
Example of sheet data:-
=IF(ISNA(BP$74),"VB","") * *to equal =IF(ISNA($BP$74,"VB","") etc..

(A$3,BP$3:BP$13,1,FALSE) *to equal ($A$3,$BP$3:$BP$13,1,FALSE)

I'm using Office 97!!

Thanks Keith



Keith

Absolute referencing
 
thanks

"Mike H" wrote:

Hi,

Right click the sheet tab, view code and paste this in and run it.

Sub versive()
Dim MyRange As Range
Set MyRange = ActiveSheet.UsedRange
For Each c In MyRange
If c.HasFormula Then
c.Formula = Application.ConvertFormula(c.Formula, xlA1, xlA1, xlAbsolute)
End If
Next
End Sub

Mike

"keith" wrote:

I want to change all references to cells on work sheet 1, to absolute cell
references? Is there any way I can change every cell reference in every
formula in every cell in one go, or do I have to edit every single cell.
Example of sheet data:-
=IF(ISNA(BP$74),"VB","") to equal =IF(ISNA($BP$74,"VB","") etc.

(A$3,BP$3:BP$13,1,FALSE) to equal ($A$3,$BP$3:$BP$13,1,FALSE)

I'm using Office 97!!

Thanks Keith



All times are GMT +1. The time now is 07:04 AM.

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