title: Excel VBA: Query a MySQL Database
body: <p>I am looking for an example of how to query a MySQL database using Excel VBA.</p>
  
  <p>I am able to use <strong><em>Data \ From Other Sources \ From Microsoft Query</em></strong> to import data from the db, but what I am actually looking for is a way not to import it to a spreadsheet directly, but rather to a data structure in VBA for further manipulation before I output the result to the spreadsheet. How can I do this?</p>