A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Visible property for text box in code



 
 
Thread Tools Display Modes
  #1  
Old March 3rd, 2007, 03:06 AM posted to microsoft.public.powerpoint
Billy B
external usenet poster
 
Posts: 42
Default Visible property for text box in code

I have a slide that has two textboxes on slide2: txtOneA and txtOneB. What I
want to do is when the command button from slide1 is clicked, the two
textbox's would not be visible. They would become visible when the cmdAnsOne
button is clicked on slide 2. It doesn't seem to work in slide show view. Can
someone tell me why? Below is the code I have for slide2.

Private Sub intitalize()
Me.txtOneA.Visible = False
Me.txtOneB.Visible = False
End Sub

Private Sub ansOneCorrect_Click()
txtOneA.Visible = True
txtOneB.Visible = True
txtOneB.Text = "Tom"
End Sub

Thank you.
  #2  
Old March 3rd, 2007, 05:42 AM posted to microsoft.public.powerpoint
PPTMagician
external usenet poster
 
Posts: 498
Default Visible property for text box in code

Are the objects on both slides? They'd have to be to appear on slide 2.

This site might help: http://www.loyola.edu/edudept/PowerfulPowerPoint/

David has a lot of VB snippets about showing and hiding shapes.


--
Thanks,
Glenna Shaw
Microsoft PowerPoint MVP Team
http://www.pptmagic.com



"Billy B" wrote:

I have a slide that has two textboxes on slide2: txtOneA and txtOneB. What I
want to do is when the command button from slide1 is clicked, the two
textbox's would not be visible. They would become visible when the cmdAnsOne
button is clicked on slide 2. It doesn't seem to work in slide show view. Can
someone tell me why? Below is the code I have for slide2.

Private Sub intitalize()
Me.txtOneA.Visible = False
Me.txtOneB.Visible = False
End Sub

Private Sub ansOneCorrect_Click()
txtOneA.Visible = True
txtOneB.Visible = True
txtOneB.Text = "Tom"
End Sub

Thank you.

  #3  
Old March 3rd, 2007, 06:15 AM posted to microsoft.public.powerpoint
John Wilson
external usenet poster
 
Posts: 6,023
Default Visible property for text box in code

code for button on slide1 assuming they are control text boxes?

slide2.txtOneA.Visible=false
slide2.textOneB.Visible=false

For button on slide 2
txtOneA.Visible=true
textOneB.Visible=true

-- If you have XP on, there are much easier non code ways to do this!
Amazing PPT Hints, Tips and Tutorials-http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk/ppttipshome.html
email john AT technologytrish.co.uk


"Billy B" wrote:

I have a slide that has two textboxes on slide2: txtOneA and txtOneB. What I
want to do is when the command button from slide1 is clicked, the two
textbox's would not be visible. They would become visible when the cmdAnsOne
button is clicked on slide 2. It doesn't seem to work in slide show view. Can
someone tell me why? Below is the code I have for slide2.

Private Sub intitalize()
Me.txtOneA.Visible = False
Me.txtOneB.Visible = False
End Sub

Private Sub ansOneCorrect_Click()
txtOneA.Visible = True
txtOneB.Visible = True
txtOneB.Text = "Tom"
End Sub

Thank you.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.