SpiderNaN
09-09-03, 13:20
| Hey, here's a question for you experts! I need to insert a picture into an Excel Chart from a visual basic 6 proyect (using an OLE object). Actually, i need to put it on the header of the chart. I've found two ways to do it, but i can't make any of them work. Way 1 ------- [charObject].shapes.addpicture "c:\picture.bmp", false, false, 100, 100, 70, 70 when i do that it causes the error: 'Application-defined or object-defined error', which i hate because it doesn't say anything to me... Way 2 ------- ussing the apparently new Graphic Object (for office xp) [charObject].PageSetup.rightHeaderPicture.Filename = "c:\picture.bmp" which causes an Automation Error. I'd like to know if any of you guys, have used this objects/methods, and if you can tell, what can i be doing wrong here, because it's driving me crazy. That's all, thanx for all of u. Regards. |