ExcelBanter

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

Dan Beard

Absolute References
 
Regarding a recent post "Subject: Changing all formulae in a worksheet from
absolute to relative" the solution was a Macro that made all the references
relative or using Edit/Replace $/[blank].

Luckily for me (!) I want to make all the references in an array of cells
(not all containing consisten formula) absolute so I can copy them to a
further set of columns and then use edit/replace to point them at a different
worksheet.

You can do 'F4' for individual references but is there a way of doing it to
all references in selected cells without having to run a macro?

Thanks For any Help
Dan B

Mike H

Absolute References
 
Hi,

To go the other way I believe you need a macro. Right click the sheet tab,
view code and paste this in. Change the range to suit:-

Sub sistence_level_wages()
Dim MyRange As Range
Set MyRange = Range("A1:D100") ' Change to suit
For Each cell In MyRange
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, xlA1,
xlA1, xlAbsolute)
End If
Next
End Sub

Mike

"Dan Beard" wrote:

Regarding a recent post "Subject: Changing all formulae in a worksheet from
absolute to relative" the solution was a Macro that made all the references
relative or using Edit/Replace $/[blank].

Luckily for me (!) I want to make all the references in an array of cells
(not all containing consisten formula) absolute so I can copy them to a
further set of columns and then use edit/replace to point them at a different
worksheet.

You can do 'F4' for individual references but is there a way of doing it to
all references in selected cells without having to run a macro?

Thanks For any Help
Dan B


Gord Dibben

Absolute References
 
Not without a macro.

Otherwise the F4 can be be used on one cell only.


Gord Dibben MS Excel MVP

On Mon, 15 Oct 2007 00:34:00 -0700, Dan Beard <Dan
wrote:

Regarding a recent post "Subject: Changing all formulae in a worksheet from
absolute to relative" the solution was a Macro that made all the references
relative or using Edit/Replace $/[blank].

Luckily for me (!) I want to make all the references in an array of cells
(not all containing consisten formula) absolute so I can copy them to a
further set of columns and then use edit/replace to point them at a different
worksheet.

You can do 'F4' for individual references but is there a way of doing it to
all references in selected cells without having to run a macro?

Thanks For any Help
Dan B



Dan Beard[_2_]

Absolute References
 

Thanks for your help - the Macro it is then.


All times are GMT +1. The time now is 10:56 PM.

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