You can read an Excel WorkBook as a complete DataBase, means an Excel file can act as Database. You can make range of Rows and Columns as the Tables of your Database which means Excel WorkBook.
This is one of the very crucial feature excel provides because imagine if you have an excel file contains very huge data, say more than 10000X500 cells filled with data and you have to fetch some data from the entire workbook based on some conditions. Yes, you can navigate the entire WorkSheet row wise or column wise but it will take significant amount of time to navigate through each cell. That’s why we have Database and Table concept right.
Read Excel WorkBook as DataBase follows the steps below
- Store data in your excel file and save it some location in your system, say “DB Data.xlsx”
- Make Excel File as ODBC Source using Microsoft Excel Driver (give the name as SumitODBC)
- Open a new excel file in which you will fetch the data from “DB Data.xlsx”
- Open the VB Editor
- Create a “ADODB.Connection” Object