J
Jimm Burton
PP: 2003
Excel: 2003
I've got a presentation that runs VBA. When it fires it opens up an Excel
spreadsheet in the background and a hidden form that accepts events. When I
hit a number key it adds a pre-defined value to the next cell in the
spreadsheet. That then updates a graph made to look like a thermometer which
then updates the presentation showing only the thermometer.
When the thermometer reaches a certain point, I want to fire off animations,
that look like fireworks going off - showing that we've reached 100% of our
goal (It's in an auction a local charities fundraising event).
Everything works EXCEPT starting the animations when I reach a defined number.
I've tried a number of variations on shapes and some comments I saw up here
indicating that "ActivePresentation.SlideShowWindow.View.Next" might do it.
Can anyone direct me towards a way to programatically fire the animations at
runtime without using the mouse events and then go back to the regularly
scheduled program (it is currently a one slide presentation).
********************
Public Sub WKSChange()
On Error GoTo WKSChange_err
ActivePresentation.UpdateLinks
If Range("B5").Value >= Range("A1").Value And bShowFire = True Then
'show the Fireworks on the slide
'******************** Show animations ****************************
ActivePresentation.SlideShowWindow.View.Next
'******************** Show animations ****************************
bShowFire = False
' Else 'Process and update slide 1 normally
End If
WKSChange_Terminate:
Exit Sub
WKSChange_err: (error stuff) ......
****************************
I've looked at:
ActivePresentation.Slides(1).Shapes(2).???
(my shapes are actually 2 - 7) to find something like FIRE ANIMATION NOW,
but can't seem to find it.
--
Any direction would be gratefully tried and accepted! More code gladly
supplied as needed.
Jimm
Excel: 2003
I've got a presentation that runs VBA. When it fires it opens up an Excel
spreadsheet in the background and a hidden form that accepts events. When I
hit a number key it adds a pre-defined value to the next cell in the
spreadsheet. That then updates a graph made to look like a thermometer which
then updates the presentation showing only the thermometer.
When the thermometer reaches a certain point, I want to fire off animations,
that look like fireworks going off - showing that we've reached 100% of our
goal (It's in an auction a local charities fundraising event).
Everything works EXCEPT starting the animations when I reach a defined number.
I've tried a number of variations on shapes and some comments I saw up here
indicating that "ActivePresentation.SlideShowWindow.View.Next" might do it.
Can anyone direct me towards a way to programatically fire the animations at
runtime without using the mouse events and then go back to the regularly
scheduled program (it is currently a one slide presentation).
********************
Public Sub WKSChange()
On Error GoTo WKSChange_err
ActivePresentation.UpdateLinks
If Range("B5").Value >= Range("A1").Value And bShowFire = True Then
'show the Fireworks on the slide
'******************** Show animations ****************************
ActivePresentation.SlideShowWindow.View.Next
'******************** Show animations ****************************
bShowFire = False
' Else 'Process and update slide 1 normally
End If
WKSChange_Terminate:
Exit Sub
WKSChange_err: (error stuff) ......
****************************
I've looked at:
ActivePresentation.Slides(1).Shapes(2).???
(my shapes are actually 2 - 7) to find something like FIRE ANIMATION NOW,
but can't seem to find it.
--
Any direction would be gratefully tried and accepted! More code gladly
supplied as needed.
Jimm