Automation error

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,341
I click a button im my workbook and a multipage UserForm appears. I click one of the Options and a Tree View form appears. I work through the branches and select an item from the tree. This dumps the relevant code for that item in my workbook. I then use this code to pull data from an closed workbook and dump it into my workbook.

Now comes the tricky part. I try to apply data validation to a cell in my workbook based on the data downloaded. At the line starting .Add Type:= in the following code section:

<font face=Courier New>    <SPAN style="color:#00007F">With</SPAN> Selection.Validation
        .Delete
        .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
        xlBetween, Formula1:="=R" & aR & "C24:R" & aR & "C" & Lim
    <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN>
    </FONT>

The code is halted with the message:  Run-time error '2147417848(800 10 108)': Automation error  The object invoked has disconnected from its clients.

If anyone has any experience with this error message, I would be most grateful for their help
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Sounds more like an activeX issue than an Excel issue can you confirm if this is the a likely case. If so which OS and Excel version are you using

KR

Dave
 
Upvote 0
Hi dave3009,

Using windows XP Professional version 2002 and xl2003. I thought that it might be related to an activeX. I am using ADO to copy data from the closed workbook. Can anything be done about it?
 
Upvote 0
I'm afraid my knowledge of VBA and ActiveX draws a blank. I only knew the error as it was not a normal thing.

If you wish I can remove my posts and return the post to an unsolved state.

Your call

Dave
 
Upvote 0
Hi dave3009,

My knowledge of removing posts draws a blank. Does it do any good. I would imagine that anyone who sees the title and knows anything useful would read it anyway.

Your call

Thanks
 
Upvote 0
Hi Giordano

Might help leaving it in place

Hope you get a solution
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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