Change Properties of objects on a slide

D

Dave

I thought I was pretty good with VBA because I can handle Access pretty well,
but I've run up against a brick wall with PowerPoint.

I'm trying to create a presentation with quite a bit of navigational and
value activity.

The navigation part I've figured out.

But I cannot figure out how to do something simple like changing the value
of some object on a slide. For example, I'm trying to set the value of a
check box to true and set it's visible property to true.

As simple as this probably sounds, would someone tell me how to do this
programmatically.

Thanks
Dave
 
C

Chirag

Assuming CheckBoxShp is your variable referencing the CheckBox shape, you
use the following to gain access to the object:
CheckBoxShp.OLEFormat.Object

From here on, you can use the usual properties and methods of the object:
CheckBoxShp.OLEFormat.Object.Value = True
would check the checkbox.

CheckBoxShp.OLEFormat.Object.Visible = True
would set the Visible property of the checkbox.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top