TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Programming

setting the initial state of checkbox in Powerpoint VBA

Programming

 
Reply
Thread Tools Display Modes
Unread 28-05-2013, 06:59 PM   #1
Newbie
Thread Starter
 
Join Date: May 2013
Location: Texas
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 DrDycke2 is an unknown quantity at this point

Intel Nvidia

Windows 7 Linux


Question 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

End Sub

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?

Sponsored Links
DrDycke2 is offline   Reply With Quote
Reply

Tags
checkbox control, powerpoint 2007, vba

Thread Tools
Display Modes


Similar Threads
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


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 05:01 PM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional