Hi,
I have created an Excel .NET project with the VSTO using a previously made Excel Document. I cannot reference any of the controls (command buttons) using the FindControl method.
I get the following exception:
Unable to get the Object property of the OLEObject class
System.Runtime.InteropServices.COMException (0x800A03EC): Unable to get the Object property of the OLEObject class
Source code examples:
Control(string name, Excel.Worksheet sheet ){
Excel.OLEObject obj = (Excel.OLEObject) sheet.OLEObjects(name);
return obj.Object;
}
Your help is greatly appreicated,
Nick