help - Reference Locking an Array

Mathias

New Member
Joined
Dec 1, 2004
Messages
10
Hi Mr Excel,

Im faced with a mind numbing, finger crackingly tedious task and it would make my week if someone could save me with a little trick.

I need to copy/paste an array of cell's throughout a workbook. This array references a master array, such that if the data in the master array changes it should automatically change every other array.

So basically my secondary arrays contain "=A1"... and so on, referencing back to the master array. The only way I know how to copy the references without typing it over and over is to "F4" lock each cell in the secondary array and copy/paste it. But the process of "F4" is huge as I have like 500 cells to do.

Is there a trick please.
Thanks
Mathias
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You could select your first array of cells then run this code to convert all the references to absolute:
Code:
Sub MakeFormulasAbsolute()
   Dim rngcell As Range
   With Application
      .ScreenUpdating = False
      .Calculation = xlCalculationManual
   End With
   For Each rngcell In Selection
      If rngcell.HasFormula Then rngcell.Formula = _
            Application.ConvertFormula(rngcell.Formula, xlA1, xlA1, xlAbsolute)
   Next rngcell
   With Application
      .Calculation = xlCalculationAutomatic
      .ScreenUpdating = True
   End With
End Sub
though I don't really know why you want to repeat the same information throughout a workbook!
 
Upvote 0

Forum statistics

Threads
1,214,530
Messages
6,120,071
Members
448,943
Latest member
sharmarick

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