![]() |
![]() |
|
|||||||
| Register | Forum Rules | Getting Started! - Guide | Blog | Videos | Gallery | Members List | Social Groups | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Re: Removing info from text box once it's saved to a file
If you have a shape named SecretButton, and that shape resides on Slide
2, then you can run a procedure, such as: Sub HideSecretButton() ActivePresentation.Slides(2).Shapes("SecretButton" ).Visible = msoTrue End Sub You could assign this procedure to some other button (possibly a button on slide 1, and the shape on Slide 2 would hide. By the way, don't do this in a new module. Multiple modules will just complicate things. Look at Example 6.6 on my site for a simple example of hiding and showing shapes. --David -- 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/ =?Utf-8?B?U2VyZ2UgTS4=?= <SergeM@discussions.microsoft.com> wrote in news:E41490E8-4C9B-475A-845B-E64B64C91348@microsoft.com: > Hi David, > I'm a bit confused. What do you mean by "hiding a shape" - to create > it on a new slide (let's say Slide 2)? And then create a new module > with code you gave > me(ActivePresentation.Slides(2).Shapes("SecretButt on").Visible = > msoTrue) and assign it to this shape? If yes, it doesn't work. > How do I co-relate it with the click on shape SAVE on my 1st Slide? > > Thank you, > > Serge > > > "David M. Marcovitz" wrote: > >> When you say that you called it SecretButton, how did you give it >> that name. As far as I know, the name has to be given with code (see >> Example 8.7 on my site). Now, you say that you inserted the shape and >> used the code, but if you didn't use code to hide the shape, it >> should already be visible. If it is not, you either didn't insert it, >> you put it off of the slide, or you set an entrance animation. The >> .Visible code doesn't trigger an entrance animation or move the >> shape, it just makes it show up in whatever place and whatever state >> it is in. --David >> >> -- >> 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/ >> >> =?Utf-8?B?U2VyZ2UgTS4=?= <SergeM@discussions.microsoft.com> wrote in >> news:6E165FA8-F1B2-468F-8291-B9A06416615D@microsoft.com: >> >> > Hi David, >> > I created a shape on another slide #2, called it SecretButton, >> > inserted in my code the line >> > ActivePresentation.Slides(2).Shapes("SecretButton" ).Visible = >> > msoTrue, and it doesn't work - the shape does not appear when the >> > SAVE buttone is clicked. >> > >> > What do I do wrong? >> > >> > Thank you, >> > Serge >> > >> > "David M. Marcovitz" wrote: >> > >> >> MsgBox is the easiest, but if you want your own shape, you could >> >> use the AddShape method >> >> (ActivePresentation.SlideShowWindow.View.Slide.Sha pes.AddShape) or >> >> you could create a shape in advance and hide it. When the time is >> >> right, have the shape become visible >> >> >> >> ActivePresentation.Slides(5).Shapes("SecretButton" ).Visible = >> >> msoTrue >> >> >> >> This makes a shape named "SecretButton" on slide 5 become visible. >> >> The code linked to that shape can be to make it invisible again >> >> (change True to False above). However, once you're going this >> >> route, you might as well go back to your original specification >> >> and have the shape become visible, wait 2 seconds and have the >> >> shape disappear. Example 8.4 on my site >> >> (http://www.PowerfulPowerPoint.com/) shows how to do the delay. >> >> >> >> --David >> >> >> >> -- >> >> 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/ >> >> >> >> =?Utf-8?B?U2VyZ2UgTS4=?= <SergeM@discussions.microsoft.com> wrote >> >> in news:BC88747C-BE92-49D9-9AE6-D95CE4FCACE9@microsoft.com: >> >> >> >> > Thank you very much guys - all works fine! You are the best! >> >> > >> >> > Steve, >> >> > I'm sorry if it's too much to ask for, but is it possible >> >> > instead of this standard pop-up text-box window, to have my own >> >> > custom shape appear with words "THANK YOU.., etc." and button OK >> >> > to dismiss it? >> >> > >> >> > Thank you, >> >> > >> >> > Serge >> >> > >> >> > "Steve Rindsberg" wrote: >> >> > >> >> >> In article >> >> >> <AD873AB9-3BAA-413F-831F-27E822A0F818@microsoft.com>, >> >> >> Serge M. wrote: >> >> >> > Thank you John, >> >> >> > >> >> >> > It works fine now. Is it possible to put a pop-up "Thank You" >> >> >> > note appearing for 1-2 seconds when users clicks SAVE, to let >> >> >> > them know that their info is accepted? >> >> >> >> >> >> Settle for a message that they can read and click OK to >> >> >> dismiss? >> >> >> >> >> >> Add this: >> >> >> >> >> >> MsgBox "Thanks a bunch. Loved your answers. Click OK to make >> >> >> me go away" >> >> >> >> >> >> ----------------------------------------- >> >> >> Steve Rindsberg, PPT MVP >> >> >> PPT FAQ: www.pptfaq.com >> >> >> PPTools: www.pptools.com >> >> >> ================================================ >> >> >> >> >> >> >> >> >> >> >> > >> >> >> >> >> > >> >> > |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Home - Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |