I have successfully connected to a database and extracted the data I want to a worksheet using the 'Activesheet.QueryTables.Add' approach.
However, I don't want the data on a worksheet at all. Ideally I want the data to be put into an array which I can then extract data from to enter on a user form or in a comment box.
I can do this by downloading the data to a worksheet and then creating an array from that data but this seems long-winded. Does anybody know of an easier way to get my query results into an array?
Bookmarks