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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,264
Members
449,075
Latest member
staticfluids

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