I’m experienced with MS access but just starting programming in PowerPoint.
I have used several controls (buttons and textboxes) from the controls
toolbar. The controls are grouped with a shape to give the illusion of a
pop-up window. When I click on the button the shape becomes invisible but
the controls do not. If I go to the next slide and then return the controls
are then invisible. If I use an Action Button instead of a Control Button I
don’t have this problem.
So…….. why won’t the controls go invisible when clicked?
Code for the control button:
btnCloseModifySetpoint is control button
txtNewDemand is control textbox
Private Sub btnCloseModifySetpoint_Click()
Me.Shapes("grpModifySetpoints").Visible = msoFalse
Me.btnCloseModifySetpoint.Visible = False
Me.txtNewDemand.Visible = False
End Sub
Thanks,
sjw
In PowerPoint, control toolbar objects are accessed by the slide they are
on so if you are hiding an object on slide 4, you might need to preface
your hiding command with Slide4. For example:
Slide4.txtNewDemand.Visible = False
You shouldn't have to do this if the button is on the same slide as the
thing being hidden. I don't know if this is your problem, but I hope it
helps.
--David

Signature
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
> I’m experienced with MS access but just starting programming in
> PowerPoint. I have used several controls (buttons and textboxes) from
[quoted text clipped - 20 lines]
>
> sjw
sjw - 08 Aug 2006 00:34 GMT
David,
I trired using the Slide ID but the issue still remains.
I'm currently using the following work around to get the screen to refresh:
SlideShowWindows(1).View.GotoSlide 1
Slide 1 is the only slide.
Thanks for the suggestion,
sjw
> In PowerPoint, control toolbar objects are accessed by the slide they are
> on so if you are hiding an object on slide 4, you might need to preface
[quoted text clipped - 32 lines]
> >
> > sjw
David M. Marcovitz - 08 Aug 2006 15:01 GMT
OK. I get it. It's not that it's not hiding; it's that you don't see it
hide until the screen refreshes. In that case, what you are doing is the
easiest way to refresh the screen.
--David

Signature
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
> David,
>
[quoted text clipped - 46 lines]
>> >
>> > sjw