本文介绍了Word vba如何将图片从图片对象保存到文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在userform上有一个图像对象。我想将该图像对象中的图片保存到文件中。我看到很多关于如何将图片加载到图像对象中的示例,但没有其他方法。
I have an image object on a userform. I want to save the picture from that image object into a file. I see many examples of how to load a picture into an image object, but none the other way around.
我试过 stdole.SavePicture obj。图片,strFilePath
,但这只适用于按钮对象。
I tried stdole.SavePicture obj.Picture, strFilePath
, but that only works for button objects.
推荐答案
首先创建一个图表。将图片放在图表中的第二位。最后导出图表。
First create a Chart. Second place the picture in the Chart. Finally export the Chart.
编辑#1
有关示例代码,请参阅:
For sample code see:
这篇关于Word vba如何将图片从图片对象保存到文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!