See the below VBA code. In the formula, is there a way to reference the last business day instead of having to manually change the date everyday? So instead of ...,"11/27/2012","11/27/2012" is there a way to reference the last business day in this formula? See the attached sheet, the date is also in cell A1 we could also reference the date in that cell too in the formula if there is a way to do that?
[VBA]Sub Macro15()
'
ActiveCell.FormulaR1C1 = _
"=BDH(RC[-5]&"" equity"",""px last"",""11/27/2012"",""11/27/2012"")"
Range("G3").Select
End Sub
[/VBA]