LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 189
Default VB codes for option buttons

hi guys,
I have a file consisting one command button and two option buttons.what I
want to do is by pressing command button, I wanna choose the button that was
nat chosen before,in other words,if option button 1 was chosen earlier now i
need it be clear and the second option button be selected.I'm trying the
following codes but it is not working:

If Sheets("Request Form").OptionButton1.Value = True Then

Sheets("Request Form").OptionButton2.Value = False
Else
If Sheets("Request Form").OptionButton1.Value = False Then
'Sheets("Request Form").OptionButton2.Value = True
End If
End If
any comment?
thanks,
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
option buttons CAOU Excel Worksheet Functions 1 April 20th 06 09:17 AM
Option Buttons coryrey Excel Discussion (Misc queries) 1 January 6th 06 03:49 PM
Option Buttons Mike Rogers Excel Discussion (Misc queries) 2 November 21st 05 07:33 PM
Using 'Option Buttons' Julian Excel Discussion (Misc queries) 3 August 17th 05 07:36 PM
yes/no option buttons Evanya Excel Discussion (Misc queries) 4 May 28th 05 12:19 AM


All times are GMT +1. The time now is 12:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"