Sathish KV
Active Member
Hi All,
Thought of sharing something new!
What if you have a database in separate excel file and the data to be queried in separate excel file and output required in a separate excel file
Check out the attached file. The sql connection string mackes an ADODB connection to both data base and the 'To be queried' file then the result in brought to our current workbook
Just save all the three excels to from zip file to same folder.
Open the 'SQL in Excel VBA.xlsm' file and click the command button
You can also increase or decrease the data in 'Query Upload File.xlsx' to check the it works perfectly
Any queries welcome!
Thought of sharing something new!
What if you have a database in separate excel file and the data to be queried in separate excel file and output required in a separate excel file
Check out the attached file. The sql connection string mackes an ADODB connection to both data base and the 'To be queried' file then the result in brought to our current workbook
Just save all the three excels to from zip file to same folder.
Open the 'SQL in Excel VBA.xlsm' file and click the command button
You can also increase or decrease the data in 'Query Upload File.xlsx' to check the it works perfectly
Any queries welcome!