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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,214,965
Messages
6,122,496
Members
449,089
Latest member
Raviguru

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