Userform conditional fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Can someone please help me? I want to create a userform where textbox2 is invisible unless textbox1 = "New".

TIA
 
Hi
Set Visible property of Textbox2 to False and place this into the userform's
code:
Private Sub UserForm_Initialize()
Me.TextBox2.Visible = False
End Sub
Private Sub TextBox1_Change()
If TextBox1 = "New" Then Me.TextBox2.Visible = True
End Sub

HTH
Cordially
Pascal

Newbie said:
Hi,

Can someone please help me? I want to create a userform where textbox2 is
invisible unless textbox1 = "New".
 
TextBox2.Visible = (Textbox1.Text="New")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Newbie said:
Hi,

Can someone please help me? I want to create a userform where textbox2 is
invisible unless textbox1 = "New".
 

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

Back
Top