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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|