I'm trying to copy and paste a formula into a certain range of cells. The formula I have (shown below) needs to update based on the contents of cells from a source workbook. Some context, the excel file where the macro below resides is opened by a macro from the source workbook (where the source cell contents are).
The source cells would be updating the 'May2017' in this case.
Sub PullPUProj()
Range("D18:D104").Formula = "=IFERROR(OFFSET('[Athens_OperatingProjection_May2017.xlsx]Budget Detail'!$A$7,MATCH($A16,'[Athens_OperatingProjection_May2017.xlsx]Budget Detail'!$A$8:$A$284,0),MATCH('[Athens_OperatingProjection_May2017.xlsx]Budget Detail'!$BK$7,'[Athens_OperatingProjection_May2017.xlsx]Budget Detail'!$B$7:$CP$7,0)),0)"
End Sub
Any help or references would be much appreciated!!