Is there a smarter way prompt ($) several links in an area

PATSYS

Well-known Member
Joined
Mar 12, 2006
Messages
1,750
I have an area, say A1:B100 which is linked to an area of another workbook, C1:D100. I want to be able to copy the link to several tables of the same size and as such I want the link to be constant i.e. prompted ($). For example in A1, the link would be "=[File.xls]Sheet1!$C$1" instead of just =[File.xls]Sheet1!C1. This way I can copy the formula to another location with it adjusting in column/rows.

I can go to each cells and press F4 but my problem is of course I have quite a number of cells to do it.

Is there an easier way?

Thanks
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Tom Urtis

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,274
If your question is, how do you convert a range of formulas so all their cell references are made to be absolute, then select your range of interest and run this macro:



Sub Test1()
With Application
.ScreenUpdating = 0
Dim x As Range, y$, z$
On Error Resume Next
For Each x In Selection.SpecialCells(3)
y = x.Formula
z = .ConvertFormula(Formula:=y, fromReferenceStyle:=xlA1, toReferenceStyle:=xlA1, toAbsolute:=xlAbsolute)
x.Formula = z
Next
Err.Clear
.ScreenUpdating = 1
End With
End Sub



If you mean something else, please repost.
 

Forum statistics

Threads
1,171,729
Messages
5,877,155
Members
433,235
Latest member
adhollan

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
Top