Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Excel to powerpoint

Hi all,

In PowerPoint I have created my own template with 3 slides. For slide 2
and 3 I have inserted chart.

Now I want to created a macro in Excel, such that the data I have
selected in excel should come in power point as chart.

I can able to invoke powerpoint form excel and for slide 2 the chart is
coimg correctly but for slide 3 its giving me an error "The index in
the specified collection is out of bonds". here IRange is the data
range slidecount is the slidenumber and objcount is the chart object
number. In my template the slide 2 chart had objcount as 2 and slide 3
has 4.

' excel chart data
Set rngData = Sheet3.Range(IRange)
' chart on slide
Set objPrs = objPPT.Presentations(1).Slides(slidecount)
' pointer to graph
Set objGraph = objPrs.Shapes(objcount).OLEFormat.Object.Applicati on
' Gettin error here
' pointer to graphs data sheet
Set objDataSheet = objGraph.Datasheet

Please help me on this. If you need further information I can provide
you the same.

Regards,
Srinivas

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel-Powerpoint Denver Charts and Charting in Excel 1 June 21st 09 10:57 AM
Excel and Powerpoint funkymonkUK[_14_] Excel Programming 2 May 27th 05 09:51 PM
EXCEL AND POWERPOINT CANDELYN. CARPENTER New Users to Excel 2 May 12th 05 01:10 PM
Excel - Powerpoint Mestrella31 Excel Programming 0 October 18th 04 06:53 PM
Excel to powerpoint toddmbright Excel Programming 1 May 29th 04 03:03 AM


All times are GMT +1. The time now is 06:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"