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

PATSYS

Well-known Member
Joined
Mar 12, 2006
Messages
1,749
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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Tom Urtis

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,255
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,136,705
Messages
5,677,300
Members
419,684
Latest member
BOB101

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