Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default How do I select an option button using code

I have an option group with two option button. I am trying to select one of
them using code. I tried:
Me.OptProject.Enabled=True
and
Me.OptProject.SetFocus
Neither worked. Any ideas?
Thanks
Ayo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default How do I select an option button using code

Hi,

Did you check its name ...

OptionButton1 or OptionButton2 ...

HTH


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default How do I select an option button using code

Try......

Me.OptProject.Value = True

--

Regards,
Nigel




"Ayo" wrote in message
...
I have an option group with two option button. I am trying to select one of
them using code. I tried:
Me.OptProject.Enabled=True
and
Me.OptProject.SetFocus
Neither worked. Any ideas?
Thanks
Ayo


Reply
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
Select Option button unhide row Wanna Learn Excel Discussion (Misc queries) 5 March 7th 08 06:38 PM
Select standard toolbar button option Gary''s Student Excel Programming 7 March 15th 07 03:24 AM
De-Select an Option button Otto Moehrbach Excel Programming 3 February 12th 07 06:12 AM
How to assign same code inside Option button code space ?? furbiuzzu Excel Programming 1 November 21st 06 02:36 PM
Select option button when have the name as a string Debbie Probert via OfficeKB.com Excel Programming 2 January 18th 05 04:37 PM


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

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"