|28-05-2013, 06:59 PM||#1|
Join Date: May 2013
Thanked 0 Times in 0 Posts
Rep Power: 0
setting the initial state of checkbox in Powerpoint VBA
I have a Powerpoint 2007 presentation meant to run in kiosk mode. The presentation contains several checkboxes that trigger either navigation or feedback. The code called by the individual checkboxes works as intended.
However, the state of the checkboxes is saved when the presentation ends, and thus only the first to view it, sees all blank checkboxes.
I have attempted to write an initialization routine to set the value of all checkboxes to False. (Triggered by the "start" button on the first slide)
I attempted the following: (I am showing only a single example for simplicity.) This subroutine is in Module1 of the Visual Basic code. The name of the checkbox is set to sld6chk2.
Public Sub Initialize()
ActivePresentation.Slides(5).Shapes("sld6chk2").Va lue = False
This does indeed get the correct slide and the correct shape for the checkbox. Alas, the "Value" method does not exist for the Shapes object, so the sub fails.
Right now, I am faced with having to trigger an initialization sub for each slide when it is opened, by placing code on each slide of the presentation.
Can anyone guide me to a more-or-less elegant way to set the value of multiple ActiveX checkboxes across multiple slides from a single initialization sub?
|checkbox control, powerpoint 2007, vba|
|Thread||Thread Starter||Forum||Replies||Last Post|
|ActiveX control in PowerPoint 2007, state not saved to 97-2003 fil||madgunnar||Microsoft Office Powerpoint||0||31-01-2008 09:15 AM|
|Change cursor state in Powerpoint Addin||DavidH&P||Microsoft Office Powerpoint||11||23-01-2008 10:25 PM|
|Deleted Powerpoint setting||Power Teacher||Microsoft Design Gallery||1||28-11-2007 05:15 PM|
|Deleted Powerpoint setting||Power Teacher||Microsoft Design Gallery||1||28-11-2007 05:12 PM|
|Deleted Powerpoint setting||Power Teacher||Microsoft Design Gallery||1||28-11-2007 05:11 PM|
|New To Site?||Need Help?|