V
Vidster
I'm trying to gain information about an excel userform using VBA
extensibility from c#.
When I cast the designer object as a userform, then try to count the
contorls on the userform :
Form.UserForm myForm = (Form.UserForm)mycom.Designer;
string myNum = (myForm.Controls.Count).ToString();
I get errormessage:
{"The server threw an exception. (Exception from HRESULT: 0x80010105
(RPC_E_SERVERFAULT))"}
Any idea how I can get around this?
extensibility from c#.
When I cast the designer object as a userform, then try to count the
contorls on the userform :
Form.UserForm myForm = (Form.UserForm)mycom.Designer;
string myNum = (myForm.Controls.Count).ToString();
I get errormessage:
{"The server threw an exception. (Exception from HRESULT: 0x80010105
(RPC_E_SERVERFAULT))"}
Any idea how I can get around this?