I think you want something like below, though I'm still not sure what you are looking for. Are you wanting to run the query multiple times, one for each date? Or are you wanting to pass all your dates and return everything, I've included both options below.
N.B I have followed your lead and passed the dates in SQL as strings, not dates - this depends on the data type in your database, but you should really use dates rather than strings.
Also you say that you are using the following to convert to text:
In SQL you should pass the dates as "mm/dd/yy" not "dd/mm/yyyy". Though if as you suggest, you have the dates stored in your database as a string, this shouldn't really matter, also I found it better to change the dates to strings in VBA rather than an Excel fromula (using Format) as it reduces the amount of steps and makes troubleshooting a bit easier.
This will move down the range each time the sub is called:
This will loop through and run a separate query for each date in the range:
This will loop through all the dates in the range A2:A100 and add them into your query in a single call:
I haven't tested, this, so look out for typos! Does this answer your question? If not let me know.
Bookmarks