0
我想的圖像粘貼到PowerPoint幻燈片,然後調整一次我把它粘貼,粘貼和調整Excel VBA中
我不知道像IDEX所以它需要能夠立即調整afterr被粘貼
下面不工作,請誰能幫
Sub PasteOnSlide()
Dim strPresPath As String
strPresPath = "c://myfile"
Set oPPTFile = oPPTApp.Presentations.Open(strPresPath)
oPPTFile.Slides(4).Shapes.PasteSpecial(ppPasteEnhancedMetafile).select
With Selection
.Height = 270
.Width = 680
.Left = 20
.Top = 120
.ZOrder msoSendToBack
End With
End Sub
我也嘗試:
set MyShape = oPPTFile.Slides(4).Shapes.PasteSpecial(ppPasteEnhancedMetafile).select
With MyShape
.Height = 270
.Width = 680
.Left = 20
.Top = 120
.ZOrder msoSendToBack
End With
End Sub
您已經激活了Microsoft PowerPoint XX.X對象庫?如果是這樣,你會得到什麼錯誤? – L42