Adjust ActiveX Scrollbar value on exit presentation

D

dave.cuthill

I have figured out a way of resetting the position of a shape on exit
from a presentation using the event procedure stuff but need to also
figure out how to adjust the value of an ActiveX scrollbar that's value
is used to move the shape around. On exit from the presentation the
shape is reset to the original position on the slide by setting the top
equal to a value - how do I do the same thing for the scrollbar.


ActivePresentation.Slides(2).Shapes("shape1").Top = 48

works for the shape but the following doesn't have any impact and
actually prevents to the movement of the shape from taking place ...


ActivePresentation.Slides(2).Shapes("ScrollBar1").Value = 0

Thanks for any help


David
 
C

Chirag

Hi David,

For ActiveX objects, you need to get hold of the object itself to allow you
to manipulate the object properties. Modify your line of code to:
ActivePresentation.Slides(2).Shapes("ScrollBar1").OLEFormat.Object.Value = 0

- 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