简体   繁体   中英

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.

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

something like this

Sub BetterPicturePaste()

    '...other stuff...

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

End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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