View Single Post
  #2  
Old June 20th 07, 02:47 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Options Button?? Anyone?

OptionButton1.Value will always return True. Maybe you need an OptionButton2_Click handler as well?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"N.F" wrote in message ...
Can anyone help me out with this code that I want to put in. I think it makes
sense because this works for a checkbox button but it doesnt work for an
option Button

Private Sub OptionButton1_Click()
Me.TextBox1.Enabled = Not Me.OptionButton1.Value
Me.TextBox2.Enabled = Not Me.OptionButton1.Value
End Sub

Ads