excel vba - VBA CommandBars.ExecuteMso ("PasteAsTableSourceFormatting") with link to Source -
i pasted table excel powerpoint code:
pptapp.commandbars.executemso ("pasteastablesourceformatting")
everything works fine. how link source range?
you can use function provided @jamieg reference pasted shape(related question), can access range of pasted shape accessing linked properties:
dim shp shape set shp = getpastedshape() 'assuming pasted shape contains excel spreadsheet if shp.type = msoembeddedoleobject shp.oleformat.object.workbook.sheet(1).range("a1") end if
Comments
Post a Comment