Issues with Conn.Open in Excel 2016

HansPA

New Member
Joined
Mar 31, 2010
Messages
27
Hi.

Anybody who has experience any problem with Conn.Open command in Excel 2016?

I have a sheet that works perfectly in Excel 2013 but does not work in 2016. I have isolated the problem to be in the Conn.Open command.

TechNet says that some versions of Excel 2016 has problems with connecting to external data, but hasn't come up with any solution yet.

Anyone in here who has a solution?

Regards Hans
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hans

What are you trying to connect to?
 
Upvote 0
I'm connecting to my SQL-database server. The VBA function looks like this:
Function VismaReal(FirmaDSN, Aar, PeriodeFra, PeriodeTil, Konto, Afd, Tusinde)
Set Conn = CreateObject("ADODB.Connection")
Conn.Open ("DSN=" & FirmaDSN & ";Trusted_Connection=Yes")

xxxxxxx

Conn.Close
End Function

The VBA function terminates at the conn.open command.

Regards Hans
 
Upvote 0

Forum statistics

Threads
1,215,543
Messages
6,125,429
Members
449,223
Latest member
Narrian

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top