hi,
i'm trying to make some code i found in a tutorial work.
i have a mysql database, which i use with another application. i've made a new excel document with the same structure as the table in the database, and i'm trying to send the data there.
here is the code:
the first part seems to work. doesn't return any errors at least.![]()
Please Login or Register to view this content.
The insertData sub however, returns "Run-time error 424: object required". In this case i renamed the sheet i was working with, after writing the code, and this probably caused the error.
I tried doing the whole thing all over again, in a new document, without renaming the sheet, and now the error i get is: "Run-time error '-2147217887 (80040e21)': Automation Error"
can anyone spot a problem? on the site where i got the tutorial, the comments seem to say the code works for most people, however, a few complained about the same error, and got no answer that helped.
thank you for your time
maybe i should add a link to the tutorial: http://www.heritage-tech.net/908/ins...cel-using-vba/
Bookmarks