Is there a limit on number of OLE objects that can be embedded in an excel sheet?

Posted by Varun Mahajan on Stack Overflow See other posts from Stack Overflow or by Varun Mahajan
Published on 2010-04-30T03:59:13Z Indexed on 2010/04/30 4:07 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

I am adding OLE objects to an excel sheet through .net interop. However, after some calls, excel is not allowing adding more objects through code. Is there a limit? or am I doing something wrong.

Dim Htmlshape As Microsoft.Office.Interop.Excel.Shape
Htmlshape = xlWorkSheet.Shapes.AddOLEObject(, tmpFile, , True, strExplorerPath, 1, "")

Running this code gives an error after say 1000 calls. So, am I crossing some limit here?

© Stack Overflow or respective owner

Related posts about excel

Related posts about vb.net