Hi all

Update - solution found here 
https://www.connectionstrings.com/the-microsoft-ace-oledb-12-0-provider-is-not-registered-on-the-local-machine/

Thanks again for all your suggestions

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Paul Newton
Sent: 15 May 2015 15:16
To: [email protected]
Subject: CopyToExcel (Craig Boyd)

Hi all

I have been using Craig's CopyToExcel function but it has recently stopped 
working (maybe since installing Office 2013 ?).  Prior to 2013 I had Office 
2010 and CopyToExcel worked flawlessly.

The relevant lines of code are:

                m.loConnection = CreateObject ( "ADODB.Connection")
                m.loConnection.ConnectionString = 
[Provider=Microsoft.ACE.OLEDB.12.0;Data Source="] + m.tcXLSFile + [";Extended 
Properties="Excel 12.0 Xml;HDR=Yes;";]
                m.loConnection.Open()

It is failing on the Open() and the error message says "Provider cannot be 
found.  It may not be properly installed ..."

Any ideas?

Thanks

Paul Newton

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to