The VB Zone Discussion Board

Re(1): Drawing Shapes in Embedded OLE Excel Spreadsheet


I ran into the same error. However, if I've got a copy of Excel running in the background BEFORE I RUN MY PROJECT, it works fine. I wonder if there's a hook into the Excel appliation itself to perform this action? Very odd stuff. :/

NOTE: The following code works regardless of if Excel is running or not:

MsgBox oleDiagram.object.ActiveSheet.Shapes.Count

It will return 0 with no problem. This leads me to believe the problem is in the "AddShape" method of the "Shapes" collection object.

Do you have anything against running a copy of MS Excel in the background of this computer to enable this process to work?

Kevin


Replies:
There have been no replies.



You must register before you can post on this board. You can register here.

Post a reply:
Username:
Password:
Email:
Subject:
Message:
Link Name:




Click Here to view the "old"messageboard


MAIN | DOWNLOADS | SAMPLE CODE | STEP BY STEP | DISCUSSION BOARD | LINKS | AUTHOR
E-MAIL
























Create Your Own Free Message Board or Free Forum!
Hosted By Boards2Go Copyright © 2000-2013
Our Sites: Wedding address collection  Wedding thank you wording