I feel exceptionally dumb for not being able to figure this out, but here I am. I would like to make the holiday list a dynamic range so that when next year's holiday schedule is released by my company, I don't have to adjust the code; I can simply add the dates to the subject range. Here's what I've tried thus far"
VBA Code:
'Calculates the days to decision.
mHLR = mV.Range("P" & Rows.Count).End(xlUp).Row
HolidayList = mV.Range("P2:P" & mHLR).Value
'Returns a #NAME error
'mP.Range("AH2:AH" & mPLR).Value = "=NETWORKDAYS(RC[-20],RC[-15],HolidayList)"
'Returns a #VALUE error
'mP.Range("AH2:AH" & mPLR).Value = "=NETWORKDAYS(RC[-20]:RC[-15],Variables!C[-18])"
'Works, but isn't dynamic.
mP.Range("AH2:AH" & mPLR).FormulaR1C1 = "=NETWORKDAYS(RC[-20],RC[-15],Variables!R2C16:R12C16)-1"