[英]Replace table text in PowerPoint from Excel VBA, preserve PowerPoint formatting
[英]VBA POWERPOINT: Copy text with formatting from powerpoint to word
現在,我將文本復制到單詞中,如下所示:
wrdDoc.Range.InsertAfter someShapeWithText.TextFrame.TextRange.Text & vbCr & vbCr
我希望它使用格式進行復制,即某些單詞是加粗的,有色的等。不能完全弄清楚該怎么做。 對VBA來說還算是新手。
您需要觸發copy
和paste
以保持格式。 我認為您可以采用這種方式(使用您無法測試的變量)
someShapeWithText.TextFrame.TextRange.Copy
wrdDoc.Range.Paste
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.