I get the error:

Visual Basic: System Error &H80004005 (-2147467259) when I execute a Macro in Excel that inserts in a database.

It doesn't happen with other Macros.

What could be happening?

  • Which Excel do you use 2007, 2010... – Sam Aug 4 '16 at 7:12
  • Do you get the "out of memory error" message? – Dave Aug 4 '16 at 8:29
  • I use Excel 2010, and I don't get "out of memory" message – aDoN Aug 4 '16 at 9:17
  • I assume you can read from the database with no problem? Do you have the adequate permissions to do all CRUD work? – Dave Aug 4 '16 at 9:22
  • Do the other Macro's insert? If so, do they share the same connection string? – Dave Aug 4 '16 at 9:49

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.