Solved

PPT 2007 Need To Programmatically Edit Data In WorkSheet Cells Behind The Chart

Posted on 2008-10-10
4
904 Views
Last Modified: 2012-06-27
Up until now I have been generating PPT files by opening a PPT template,
pulling records from Access, and using VBA code to populate the tables and
graphs on the slides with data from the Access queries. The tables are easy,
while the graphs I updated by putting data values into the graph's datasheet
cells.

Now with PPT 2007 the graphs are different. The datasheet is more like an
Excel worksheet, with a "Chart" tab and a "Sheet1" tab at the bottom (or a split window). I have
tried every syntax I can think of to talk to this new type of datasheet using
VBA, but nothing works.

Now I read on various forums that the new PPT 2007 Chart object does not
expose any methods that can be addressed using VBA.

So I started writing an application to manipulate PPT slides using VB.Net.
But I cannot find any examples that show how to use VB.Net code to
programmatically update the data in the worksheet behind the chart.

What is the big secret to updating the sheet cells in PPT 2007 charts?
Where is the answer to this found in the documentation for the 2007 PPT object model? I cant believe the
ability to address datasheet cells direclty in code has been taken away.

Does anybody know how to do this without reverting back to the old MSGraph model?

Thanks for any help!
VITIX
0
Comment
Question by:VITIX
  • 3
4 Comments
 

Author Comment

by:VITIX
Comment Utility
After all the research I've done in the last 2 days, I think this question is more difficult than I had first guessed.

Anybody? Any way to make it possible to progammatically edit data in a PPT 2007 chart?
0
 
LVL 21

Accepted Solution

by:
GlennaShaw earned 250 total points
Comment Utility
You're not going to like this answer.  Quoted from: http://www.pptfaq.com/FAQ00889.htm
"Charts
If you need to automate charts in PowerPoint 2007, it'd be best if you change your name and move to another town where nobody knows that you do PowerPoint programming.
The chart objects you get in PowerPoint 2007 when you add a new chart expose no methods or properties to VBA. In short, you can't do anything with them."

On the other hand, there is this: http://msdn.microsoft.com/en-us/library/bb871574(VS.80).aspx
and this: http://msdn.microsoft.com/en-us/library/bb676881.aspx
0
 

Author Comment

by:VITIX
Comment Utility
Yes, I saw the pptfaq pages. I also found that first link previously, but I did not find the second one regarding PPT automation with VS 2005.

That link pretty much sums it up. What I am asking cannot be done, and that link proves it, straight from the Microsoft horse's mouth!

Like it or not, there is my answer! Thanks for the info!
0
 

Author Closing Comment

by:VITIX
Comment Utility
Provided a link to a Microsoft web page that hit the nail right square on the head! Not what I wanted to hear, but the information provided is correct and accurate and pertinent! So Thank You!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Resize PowerPoint/JPEG to a specific size 10 52
Form design in vb.net 7 18
Round up to 100% in .NET 10 41
Showdialog 8 20
Introduction I recently received a question about the creation of Computer-Based Training (CBT) that incorporates quizzes in the middle of the lesson. The intent was to keep people engaged in the content, and not to actually track students’ scores.…
Introduction In all recent versions of PowerPoint it is possible to trigger animations. This means the animation takes place when a certain shape is clicked. This allows you to run animation “on demand” and outwith the normal sequence of mouse cl…
The viewer will learn how to edit the master slide. They will also learn how to combine multiple themes into one master slide to use them in their presentation.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now