+ Reply to Thread
Results 1 to 8 of 8

I Need Help Edit Code Vba Export Excel To Mysql

  1. #1
    Registered User
    Join Date
    12-09-2011
    Location
    saudia
    MS-Off Ver
    Excel 2010
    Posts
    44

    I Need Help Edit Code Vba Export Excel To Mysql

    Hi
    I Need Export All Rows 1 To 164 In Excel To Mysql By Vba Code

    This file etheer.xlsm
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: I Need Help Edit Code Vba Export Excel To Mysql

    This may be a possible solution for you.

    http://panofish.net/convert-import-e...ysql-database/
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Ontario Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: I Need Help Edit Code Vba Export Excel To Mysql

    You could use the ADO Connection Object.
    Here is a very basic example but you will have to play around with the connection string a bit.
    And you will need to add a reference to Microsoft Active X Data Object 2.X library in Tools->References.

    And you might need to download the ODBC Driver for MySQL.
    But hold off on that. Try without it first.
    But should you need to, here is the MySQL website:
    http://dev.mysql.com/downloads/connector/odbc/

    Please Login or Register  to view this content.
    Last edited by jason_lee_91; 08-14-2013 at 10:28 PM.

  4. #4
    Registered User
    Join Date
    12-09-2011
    Location
    saudia
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: I Need Help Edit Code Vba Export Excel To Mysql

    Error

    ERROR.jpg
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Ontario Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: I Need Help Edit Code Vba Export Excel To Mysql

    The error message says that your SQL has an error in the syntax.

    If you look at the qry, it says that you ahve to build your insert query.

  6. #6
    Registered User
    Join Date
    12-09-2011
    Location
    saudia
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: I Need Help Edit Code Vba Export Excel To Mysql

    How to fix error ?

  7. #7
    Registered User
    Join Date
    12-09-2011
    Location
    saudia
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: I Need Help Edit Code Vba Export Excel To Mysql

    I Have this code work witn me but insert only 3 column and 3 rows

    i need insert 36 columns and 164 rows

    and update taple in database mysql everytime run macro

    Please Login or Register  to view this content.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: I Need Help Edit Code Vba Export Excel To Mysql

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I Need Edit Code Vba Export Excel To Mysql
    By etheer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2013, 12:58 AM
  2. Replies: 1
    Last Post: 10-30-2012, 03:24 PM
  3. Export mySql to Excel
    By abel_grey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2008, 04:16 AM
  4. [SOLVED] Best way to export from Excel to MySQL?
    By evillen in forum Excel General
    Replies: 1
    Last Post: 03-03-2006, 07:10 PM
  5. [SOLVED] VBA code to edit a formula in excel?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-17-2005, 01:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1