I would like to know if there is any VBA code which allows me to execute .sql
files by clicking a button in Excel?
I've been surfing different webs, but all of them showed code which consists into write the SQL query in the macro, despite it isn't what I wanted. So I have stored .sql
scripts as files in different folders on my computer and what I want is to run this script by clicking a button in Excel using VBA.