Get EXCEL data using SQL in VBA!

preview_player
Показать описание
There are tons of ways to get the data from Excel worksheet. In this video I’m going to show You how to query Excel data using SQL in VBA.

CODE from video:

PREVIOUS VIDEO:

TIME STAMPS:
0:00 Intro
0:25 Mix SQL & VBA
1:14 Project References
1:33 Sample data
1:50 Exercise
2:12 Function
2:38 SQL string query
3:23 Connection string
3:52 ADODB recordset
4:17 Outcome
5:39 Thank You for watching!

SITE & SOCIALS:

CONTACT:

Don't forget to leave like and subscribe to my channel, it means a lot to me :)
Рекомендации по теме
Комментарии
Автор

Very neat !, also a nice way to get data from excel file without "opening" it.

BackPly
Автор

Hi, that is exactly what I’m looking for, thanks for the video.

I want move my datasets from excel tables (currently) to an sql database. Which sql service provider do you recommend?

I don’t know how to choose one properly, my total database in excel has less than 10mb, with around 20 tables and some of them have more than 50k rows.

Looking the pricing of the sql servers it seems super complex, where I need to chose the processor a lot of other stuff. Any direction to help me in the next steps?

I’m already have a system that works really well in vba, but I need to make it multiuser

brunoamaral