Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Options Button?? Anyone? (http://www.outlookbanter.com/outlook-vba/50812-options-button-anyone.html)

N.F June 20th 07 01:02 AM

Options Button?? Anyone?
 
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


Sue Mosher [MVP-Outlook] June 20th 07 02:47 PM

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



All times are GMT +1. The time now is 03:40 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com