有没有一种方法可以使用自动化从内存中加载图片到excel?

时间:2018-10-25 13:38:19

标签: excel vba ole

我知道我可以像这样使用Shapes.AddPicture将图片添加到excel sheel:

sheet.ShapesAddPicture("temp.png", msoTrue, msoTrue, x, y, w, h);

因此,我可以生成位图,将其保存到磁盘,然后将其加载到Excel。但是,它非常慢。

我想将位图直接传输到Excel,而不使用temporay位图文件。有没有办法使用Excel自动化来做到这一点?

0 个答案:

没有答案