Hi Carl
I'm AnnaThomas and I'd be happy to help you with your question. In this Forum, we are Microsoft consumers just like yourself.
When you use ppPasteMetafilePicture, it corrupts the formatting of the table, and when you try to copy and paste, it fails until you click on the unused area of the slide.
To resolve this issue, you can try copying the table as an embedded object instead of a picture. This should preserve the formatting of the table when pasted into PowerPoint. Here's how you can modify your code to achieve this:
PPApp.ActiveWindow.Selection.Unselect
' Copy incident table to presentation Set table1 = ActiveSheet.Range("I28:N38") table1. Copy
' Create embedded object Set PPSlide = PPApp.ActivePresentation.Slides(PPApp.ActivePresentation.Slides.Count) Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Add objExcel.Visible = True Set objWorksheet = objWorkbook.Worksheets("Sheet1") objWorksheet.Paste Set objTable = objWorksheet.Shapes.Item(1). OLEFormat.Object objTable.Copy
' Paste embedded object onto PowerPoint slide PPSlide.Select PPApp.ActiveWindow.View.PasteSpecial DataType:=ppPasteOLEObject
I hope this helps ;-), let me know if this is contrary to what you need, I would still be helpful to answer more of your questions.
Best Regards,
AnnaThomas
Give back to the community. Help the next person with this problem by indicating whether this answer solved your problem. Click Yes or No at the bottom.