ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Update MySQL database using Excel VBA (https://www.excelbanter.com/excel-programming/446376-update-mysql-database-using-excel-vba.html)

Lane[_4_]

Update MySQL database using Excel VBA
 
Dear Excel experts,

I would like to use Excel VBA to update data on a database. I am using a web database running MySQL. My Excel-sheet is collecting data in real-time. I want to get it to update database as data is being collected. May I ask the experts here whether this is even possible with VBA?

Thank you very much for your help.

Greg Glynn

Update MySQL database using Excel VBA
 
Hi Lane

On Tuesday, June 19, 2012 7:56:05 PM UTC+10, Lane wrote:
Dear Excel experts, I would like to use Excel VBA to update data on a database. I am using a web database running MySQL. My Excel-sheet is collecting data in real-time. I want to get it to update database as data is being collected. May I ask the experts here whether this is even possible with VBA? Thank you very much for your help.


It certainly is. Which version of Excel are you running? If it is Excel 2003 I recommend Conrad Carlberg's most Excellent book "Managing Data with Microsoft Excel"

At any rate the first step is to install the ODBC drivers for MySQL
http://dev.mysql.com/downloads/connector/

Then you need to setup your connection using the MS ODBC Data Sources config.
odbcad32.exe (Should be in your \Windows\System32 folder)

Then the fun begins.




All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com