Excel 2007 to 2010 Issue

GQue

New Member
Joined
Apr 13, 2011
Messages
34
Well, I have an issue with some code that works perfectly fine in Office 2007, but since I upgraded to Office 2010, the code now fails. Oddly, it fails when calling a Sub in my code and not at a specific area in the code.

Error messge:
The object invoked has disconnected from its clients
Now I read several blogs that talk about Option Explicit being required (it is in my code).

Only thing I can point out is the sub being called has an ADO DB Connection in it and it is the only location in the code that calls a DB connection.

Has anyone else had this issue? I can't understand why it works in 2007, but not in 2010.

Help pls! =)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Weird. What if you change the name of the sub so it doesn't begin with Clear? (grasping at straws now)
If that doesn't work, would you be able to email the file for review?
 
Upvote 0
I tried changing the Sub to GoClearAcctManagers and no luck...

I don't mind sending the file, but the problem is the import files are confidential information that I can not send. I will be happy to mock a couple files for the import if you'd like.

If you are fine with that, I will put the files on a ftp site for you to DL.

BTW - Thanks so much for your time!!
 
Upvote 0
I can't replicate your error with that file. I would point out that you shouldn't use Integer for a row number variable - use Long - and it's not good practice to declare object variables As New. Declare them and initialise them separately.
 
Upvote 0
Ok... So after my 5th reboot since the original problem... It wanted to work this morning.

Sorry for wasting everyone's time and I do greatly appreciate your time and effort in helping me out.

=)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,282
Members
452,902
Latest member
Knuddeluff

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