Copy Paste Formula - Increase page link

johnrobgray

New Member
Joined
Aug 21, 2017
Messages
43
Office Version
  1. 2013
Platform
  1. Windows
Hi

I want to copy and paste the below formula into different pages.

='[Dan Blakemore Aug 2023.xlsx]2'!$Y$34

Basically I have 1 - 31 tabs along the bottom and want each tab to relate to the relevant tab in the linked file. Is there a way to do this quickly without having to edit the number in the formula on every page?

so tab 3 becomes ='[Dan Blakemore Aug 2023.xlsx]3'!$Y$34 & so on & so on
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You can do it with VBA very easily, something like this:
VBA Code:
Sub test()
For i = 1 To Worksheets.Count
With Worksheets(i)
.Range(.Cells(3, 6), .Cells(3, 6)).Formula = "='[Dan Blakemore Aug 2023.xlsx]" & i & "'!$Y$34"
End With
Next i
End Sub
Note I didn't know where you wanted it pasted so I put in in F3
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,235
Members
449,092
Latest member
SCleaveland

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