I am using the below macro to copy a table to Powerpoint . But this is copying as an image . When I usedCopyBitmapToClipboard true it is throwing an error. My table is a pivot table in QVW. How can this be done?
sub Ops_Dashboard_Automation()
set objPPT = createobject("PowerPoint.Application")
objPPT.Visible = True
set objPresentation = objPPT.Presentations.Add
set v = ActiveDocument.Getvariable("vShowHideAll")
v.SetContent 1,TRUE
ActiveDocument.GetApplication.WaitForIdle
objPresentation.ApplyTemplate("\\template.potx")
Set Doc =ActiveDocument
PPSlideNo = 1
Doc.Fields(FieldName).Clear
Doc.Fields("Business Segment Name").Clear
Set PPSlide = objPresentation.Slides.Add(PPSlideNo,12)