vba - 在 PowerPoint 2007 中调整图片大小

标签 vba powerpoint

我环顾四周。我所能找到的只是在 Excel 中或通过 Excel 调整大小。

我正在粘贴 pdf 中的图片,需要一键调整大小和定位。

最佳答案

我终于明白了..这是我所做的,以防万一有人面临同样的问题。
这会重新调整图像大小,将其设置在所需位置并将其发送到后面。

Sub Resize()
    With ActiveWindow.Selection.ShapeRange
        .Height = 2.78 * 72  //72 is the multiplier for the inch
        .Width = 4.17 * 72
        .Left = 0.78 * 72
        .Top = 1.25 * 72
        .ZOrder msoSendToBack  // This sends picture to the back
    End With
End Sub

关于vba - 在 PowerPoint 2007 中调整图片大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12936237/

相关文章:

vba - 在 PrintOptions 下添加范围并在变量中确定它

excel - 使用VBA代码在excel中查找循环链接

excel - 复制范围值和格式

vba - 在 vba 中使用 ffmpeg 更改视频格式

excel - 2010 年至 2016 年的 VBA : copy/paste text as undelimited,,即使它包含分隔字符

vsto - 如何在当前打开的文件中保存 VSTO 加载项的选项?

arrays - 为什么 VBA 类不能通过 ByRef Array()?

python - 使用 python-pptx 创建 PPT 时如何使用我公司的 PPT 幻灯片布局?

vsto - 如何确定占位符正在使用中?

java - 使用 Java 将文件 .pptx 转换为图像