A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Options Button?? Anyone?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 20th 07, 01:02 AM posted to microsoft.public.outlook.program_vba
N.F
external usenet poster
 
Posts: 1
Default 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

Ads
  #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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
default programs button (under Options) does not work in office 20 Jacoblm Outlook - Installation 0 March 28th 07 01:19 AM
Attachment Options Steffen Heinzl Add-ins for Outlook 0 January 25th 07 12:58 PM
Button location in button bar Leah Ann Add-ins for Outlook 1 August 11th 06 02:16 PM
Shorcut button for Message Options [email protected] Outlook and VBA 2 August 4th 06 01:52 PM
Outlook 2003 | Tools | Options | Calendar options Sue Mosher [MVP-Outlook] Outlook - General Queries 0 January 18th 06 09:59 PM


All times are GMT +1. The time now is 11:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.