Change Properties of objects on a slide

  • Thread starter Thread starter Dave
  • Start date Start date
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
 
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
 
Back
Top