How to add chart in 2007 from code ?

C

chris

In previous office versions I was using the commands below for adding an
Excel chart on current slide.

PPT_SLD.Shapes.AddOLEObject Left:=var_chrt_L, Top:=var_chrt_T,
Width:=var_chrt_W, Height:=var_chrt_H, ClassName:="Excel.Chart.8",
Link:=msoFalse

How can I add chart now in 2007 from code ? (it's not easy now that macro
recorder is removed)

Thanks a lot in advanve.
 
S

Shyam Pillai

Chris,
Use the new AddChart method:

call PPT_SLD.Shapes.AddChart(xl3DPie,0,0,350,250)


--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top