I got the parameters part for the 1st query. If I want to run the macro with several portfolios, I can use a loop to push all the parameter names (Porfolios: SAFP, ABCD, etc.) and keep the date fixed.
Two other questions:
1. Is it possible to pass parameters through vba to a SELECT query...