简体   繁体   English

VBA宏将范围复制和粘贴范围复制到PPT作为图片

[英]VBA Macro to Copy Range and Paste range to PPT as Picture

Need help to copy range of cells from excel sheet1 to PowerPoint file and paste it as Picture and make that picture fit inside the slide automatically. 需要帮助将单元格范围从excel sheet1复制到PowerPoint文件并将其粘贴为“图片”,并使该图片自动适合幻灯片。

I currently use Snagit software to take screenshot of the sheet and use send to powerpoint but it take lots of time. 我目前使用Snagit软件截取工作表的屏幕截图,并使用send to powerpoint,但是要花很多时间。

Any feedback would be nice to automate this process 任何反馈都将使此过程自动化

something like this 像这样的东西

Sub BetterPicturePaste()

    '...other stuff...

    Windows(1).Sheets(1).Range("myrange").Copy
    Windows(2).View.PasteSpecial DataType:=ppPasteEnhancedMetafile

End Sub

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM