TalosBlack
Programmer
I use the following code to disable/enable a field in Outlook. The problem is the field starts as enabled no matter what i do. I would like for the field to start disabled and only enable when the checkbox is marked.
Sub CheckBox1_Click()
Set CheckBox1 = Item.GetInspector.ModifiedFormPages("Data".Controls("CheckBox1"
Set TextBox2 = Item.GetInspector.ModifiedFormPages("Data".Controls("TextBox2"
Set TextBox14 = Item.GetInspector.ModifiedFormPages("Data".Controls("TextBox14"
If CheckBox1=False Then
TextBox2.Enabled=False
TextBox14.Enabled=False
Else
TextBox2.Enabled=True
TextBox14.Enabled=True
End If
End Sub
Thanks
John
Sub CheckBox1_Click()
Set CheckBox1 = Item.GetInspector.ModifiedFormPages("Data".Controls("CheckBox1"
Set TextBox2 = Item.GetInspector.ModifiedFormPages("Data".Controls("TextBox2"
Set TextBox14 = Item.GetInspector.ModifiedFormPages("Data".Controls("TextBox14"
If CheckBox1=False Then
TextBox2.Enabled=False
TextBox14.Enabled=False
Else
TextBox2.Enabled=True
TextBox14.Enabled=True
End If
End Sub
Thanks
John