【发布时间】:2017-08-01 18:42:29
【问题描述】:
我创建了一个将图片从 Excel 复制到新的 PowerPoint 演示文稿的代码。该代码适用于 MS Office 2016,但不适用于 MS Office 2010。特别是,导出到 PowerPoint 的图片不会在 .pptx 中调整 2010 的大小。
我该如何解决这个问题?
这是在 MS 2010 中不起作用的有问题的代码:
Application.Goto Reference:="Full_Account_Performance"
Application.CutCopyMode = False
Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture
PPPres.Slides(x).Shapes.PasteSpecial
On Error Resume Next
With PPApp.ActiveWindow.Selection.ShapeRange
.ScaleHeight 0.435, msoFalse, msoScaleFromTopLeft
'Powerpoint 2010 ingnors it... but in 2016 it is fine
.Left = 10
.Top = 55
End With
【问题讨论】:
标签: excel powerpoint powerpoint-2010 vba