Hi,
I have a working single-cell array formula in cell G18: {=MAX(IF(F21=DOA_ApprovalType,DOA_EffectiveDate))}
Capture.PNG
I am creating a sub to read in an ApprovalType (replacing F21 above). I want to use the above formula in vba to get the single date result which i want to store in a date variable to pass on to a user defined function. I can't get the above function to calc or store except to write the formula on an sheet which then calculates.
Any ideas to get it to work without going to the sheet will be much appreciated.
I have being trying for hour but don't know enough to get it to work.
Regards,
Shamala
Bookmarks