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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -