Way to link to the same cell in different versions of a file

STCrosstown

New Member
Joined
Aug 24, 2018
Messages
9
So I have a forecast that I manage and it gets updated multiple times a month (167 versions last year) and I am trying to find a way to use a formula to pull the same cell from all the versions into one excel sheet.

So the goal would be to pull in say cell AE113 from the Output tab from all 167 versions of the model onto one worksheet.

Any help is appreciated.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try this with an active empty sheet:
VBA Code:
Option Explicit

Private Sub stct()
Dim path$, file$, i&
    Application.ScreenUpdating = False
  
    With Application.FileDialog(msoFileDialogFolderPicker)
        .Title = "Select folder": .Show
        If .SelectedItems.Count = 0 Then Exit Sub Else path = .SelectedItems(1) & "\"
    End With

    file = Dir(path & "*.xls")
    i = 1
  
    Do While file <> ""
        Cells(i, 1) = ExecuteExcel4Macro("'" & path & "[" & file & "]" & "Output'!" & Range("AE113").Address(, , xlR1C1))
        i = i + 1: file = Dir
    Loop
  
    Application.ScreenUpdating = True
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

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