Absolute Question

Peter Muller

Board Regular
Joined
Oct 15, 2018
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Good evening,

I have a summary sheet with 600+ rows, info all sourced from other sheets in the workbook.

Is it all possible to make all the addresses absolute once off without having to go to each row and select F4?

I am really hoping this is possible and that you can assist me.

Peter
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
This seems to work.

Just select the range you want to convert then run the code.

VBA Code:
Sub toABS()
Dim r As Range:     Set r = Selection
Dim cel As Range

For Each cel In r
    cel.Formula = Application.ConvertFormula(cel.Formula, xlA1, xlA1, 1)
Next cel
End Sub
 
Upvote 0
Solution
All the formulas referencing the other sheets all the same format, or do they vary? It may be possible to do this with Find and Replace, without VBA, depending on what the formulas look like.

If you are comfortable with VBA then post #2 is probably your quickest solution.
 
Upvote 0
This seems to work.

Just select the range you want to convert then run the code.

VBA Code:
Sub toABS()
Dim r As Range:     Set r = Selection
Dim cel As Range

For Each cel In r
    cel.Formula = Application.ConvertFormula(cel.Formula, xlA1, xlA1, 1)
Next cel
End Sub
This is perfect, thank you so much.

You are saving me tons of time :)(y)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top