Giordano Bruno
Well-known Member
- Joined
- Jan 7, 2007
- Messages
- 1,322
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
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