Run-time error after converting from Office 2003 to Office 2010

tmStuder

New Member
Joined
Jul 21, 2011
Messages
6
I have a fine that I have been using since 2007. Yesterday we converted to Office 2010 and now some macros are not working. I get the following error:
Run-time error '-2147417848 (8001010)':
Automation error
The object invoked has disconnected from its clients.

When I debug is breaks here (the red text is highlighted):
ws.rows("2:2").Copy
ws.rows("3:3").Insert shift:=xlDown
ws.rows("3:3").EntireRow.Hidden = False

I have searched and searched and can find nothing helpful. This code runs fine in both Excel 2003 and 2007 but blows up in 2010.

Please help I think I'm going crazy!
 
I just don't understand why this one broke. I have used that exact same code at least 100 times and this is the first one that had issues.

That being said, thank you very much you have saved me for today!
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,224,590
Messages
6,179,754
Members
452,940
Latest member
rootytrip

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