Powerpoint-通过VBA将组另存为图像

时间:2018-11-01 18:30:41

标签: vba image export powerpoint

我想将群组另存为png图片。

我能够将图像导出为完整的幻灯片,但是我不知道如何仅导出特定的组。

这适用于幻灯片:

Private Sub CommandButton1_Click()
    neuerText = TextBox1.Value
    ActivePresentation.Slides(1).Export "C:\bla\" & neuerText & ".png", "PNG"
End Sub

但是如何仅选择一个组?例如

ActivePresentation.Slides(1).Shapes("Group 1").Export "C:\bla\" & neuerText & ".png", "PNG"

理想情况下,图片应具有透明背景。

有人知道我该怎么做吗?

1 个答案:

答案 0 :(得分:1)

使用ShapeRange对象应该可以。

dbo.collection('blogs').findOneAndUpdate(
            {_id:ObjectId(id)},
            {$addToSet: {likes: {ip: uip}}},
            {returnNewDocument: True},
            function(err, res) { console.log(res.likes.length) });
相关问题