VBA Macro to Copy Range and Paste range to PPT as Picture

折月煮酒 提交于 2019-12-24 18:09:56

问题


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.

I currently use Snagit software to take screenshot of the sheet and use send to powerpoint but it take lots of time.

Any feedback would be nice to automate this process


回答1:


something like this

Sub BetterPicturePaste()

    '...other stuff...

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

End Sub


来源:https://stackoverflow.com/questions/18317027/vba-macro-to-copy-range-and-paste-range-to-ppt-as-picture

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!