【发布时间】:2014-08-29 15:07:08
【问题描述】:
我目前正在创建一个文档,该文档将从 MS Word 文档中获取格式和文本,并将其粘贴到 PowerPoint 模板的文本框中。我已经四处寻找,看看如何做到这一点,但没有找到太多。任何帮助将不胜感激!
Public Sub CommandButton1_Click()
Dim pptApp As Object
Dim pptPres As String
Dim folderPath, file As String
folderPath = ActiveDocument.Path & Application.PathSeparator
file = "Huntington_Template.pptx"
pptApp.Visible = True
pptApp.presentations.Open (folderPath & file)
ActiveDocument.Bookmarks("Update_Image").Range.Copy 'text box to copy in MS WS
'not sure what to do next?
End Sub
【问题讨论】:
标签: vba ms-word powerpoint powerpoint-2010