
In the Visual Basic window, open the code window of your sheet and let's type some code! According to your needs you may create a custom macro and assign them to the action of buttons or other kind of stuff. In this new interface you will be able to run your VB code. In this tab, launch the Visual Basic window: You can do this easily opening the Excel options (File > Options) and searching for the Customize Ribbon tab, in this Tab you need to check the Developer checkbox to enable it in your regular interface:Ĭlick on Ok and now you should be able to find the Developer tab on your excel ribbon. In order to launch the window of Visual Basic to run some code on your spreadsheets, you will need to enable the Developer tab on the excel Ribbon. Launch Microsoft Visual Basic For Applications In this article, I will explain you from scratch how to use Microsoft Visual Basic for Applications to develop your own macros and run some SQL queries against plain data in your excel spreadsheets. Of course, finding such information as a regular user is quite easy and simple using filters and so, however the assignment requires to do the queries using SQL and Visual Basic for the job.

For example, for this article, we are going to use the following Sheet in Excel Plus 2016: Instead of a database, we are going to query plain data from an excel spreadsheet (yeah, just as it sounds). For this assignment, it's necessary to find the answer or data as response of a query.

In the last days, I received an unusual request from a friend that is working on something curious because of an assignment of the University.
