PC Review


Reply
Thread Tools Rate Thread

altering a graph during a slide show - please help!

 
 
Jeff
Guest
Posts: n/a
 
      30th Jul 2003
i'm kinda under the gun w/ this one. i'm not too familiar w/ VB, though
i've tinkered w/ it from time to time. the problem i'm trying to resolve
involves code found under MS knowledge base. now, the following code, as i
understand it, is supp to the values of a graph (namely a1:d4) by 5, during
a powerpoint presentation. however, when i run it, it doesn't recognize the
declarations graph.chart and graph.range. again, this is powerpoint 2000.
help!

Sub ModifyValueUp()
Dim ograph As Graph.Chart
Dim oRange As Graph.Range

' Assign ograph to the graph object.
'
Set ograph =
ActivePresentation.Slides(1).Shapes("Graph1").OLEFormat.Object

With ograph.Application.DataSheet

' Loop through each object and increase
' the value of each cell by 5.
'
For Each oRange In .Range("a1:d4")
oRange.Value = oRange.Value + 5
Next oRange
End With
Set ograph = Nothing
End Sub

thanks!


 
Reply With Quote
 
 
 
 
Steve Rindsberg
Guest
Posts: n/a
 
      30th Jul 2003
In the VBA editor, choose Tools, References. Scroll down ... waaayyyy down
..... to Microsoft Graph 9.0 and put a checkmark next to it. OK your way out
and try the macro again.


--

Steve Rindsberg PPT MVP
PPTLive ( http://www.pptlive.com ) Featured Speaker
PPTools: http://www.pptools.com
PPT FAQ: http://www.pptfaq.com


"Jeff" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> i'm kinda under the gun w/ this one. i'm not too familiar w/ VB, though
> i've tinkered w/ it from time to time. the problem i'm trying to resolve
> involves code found under MS knowledge base. now, the following code, as

i
> understand it, is supp to the values of a graph (namely a1:d4) by 5,

during
> a powerpoint presentation. however, when i run it, it doesn't recognize

the
> declarations graph.chart and graph.range. again, this is powerpoint 2000.
> help!
>
> Sub ModifyValueUp()
> Dim ograph As Graph.Chart
> Dim oRange As Graph.Range
>
> ' Assign ograph to the graph object.
> '
> Set ograph =
> ActivePresentation.Slides(1).Shapes("Graph1").OLEFormat.Object
>
> With ograph.Application.DataSheet
>
> ' Loop through each object and increase
> ' the value of each cell by 5.
> '
> For Each oRange In .Range("a1:d4")
> oRange.Value = oRange.Value + 5
> Next oRange
> End With
> Set ograph = Nothing
> End Sub
>
> thanks!
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i link Excel to Powerpoint slide show & see graph on wk she =?Utf-8?B?VGluY2FuMzY=?= Microsoft Excel Charting 0 9th Oct 2006 11:11 PM
create progressive graph for slide show jackw85 Microsoft Excel Charting 5 17th Jun 2005 05:19 PM
Altering presentation while viewing slide show? =?Utf-8?B?UG93ZXJwb2ludG1hbjg=?= Microsoft Powerpoint 1 1st May 2005 12:50 AM
Manual control of slide show, then when finishes show same slides on timed slide show...? David Boggitt Microsoft Powerpoint 3 5th May 2004 10:12 PM
Crash when altering data in graph Eric Microsoft Excel Crashes 0 9th Feb 2004 08:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 AM.