How to have VBA code where I pass an array of RICs

I want to have VBA code where I pass an array of RICs, a time / date and I get the MID_Price.Close field back so for example - these three RICs: 

USDSROIS2Y=
USDSROIS3Y=
USDSROIS4Y=

Answers