Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Navigating between option buttons is not selecting the option

Hi,

have you looked at the tab order? just a thought

J

"Ramana" wrote:

Hi,
In my user form, while navigating between option buttons, the focus is
moving to the new option buttons but the new option is not getting selected
unless I press space bar.
Please see the attached excel file.

Any clue?

Advance Thanks,
Ramana



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Navigating between option buttons is not selecting the option

Tab order is correct.
Tab order only controls the sequence of navigation. Here the navigation is
working fine as the focus is chaning properly, but the option is set.

Thanks,
Ramana

"Gixxer_J_97" wrote in message
...
Hi,

have you looked at the tab order? just a thought

J

"Ramana" wrote:

Hi,
In my user form, while navigating between option buttons, the focus is
moving to the new option buttons but the new option is not getting

selected
unless I press space bar.
Please see the attached excel file.

Any clue?

Advance Thanks,
Ramana





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Navigating between option buttons is not selecting the option

when you say its not getting selected you mean it's not getting 'pressed'
unless you press the spacebar?


"Ramana" wrote:

Tab order is correct.
Tab order only controls the sequence of navigation. Here the navigation is
working fine as the focus is chaning properly, but the option is set.

Thanks,
Ramana

"Gixxer_J_97" wrote in message
...
Hi,

have you looked at the tab order? just a thought

J

"Ramana" wrote:

Hi,
In my user form, while navigating between option buttons, the focus is
moving to the new option buttons but the new option is not getting

selected
unless I press space bar.
Please see the attached excel file.

Any clue?

Advance Thanks,
Ramana






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Navigating between option buttons is not selecting the option

You could try this:

OptButton1_Enter()
OptButton1 = True
End Sub

OptButton2_Enter()
OptButton2 = True
End Sub

I have this code on one of my forms and it works fine. I do find it a
little annoying that the option I want to set doesn't stay if I have to tab
through all of the options. For example, if I start at OptButton1 and set it
true, then tab through OptButton2, I always have to go back and reset
OptButton1, then use the mouse or an accelerator key to avoid setting the
focus on OptButton2 in order to avoid setting it to true.

Good luck

Dave

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Navigating between option buttons is not selecting the option

You are right.
After adding the code, we can not navigate using Tab.
Its very annoying that option buttons that Microsoft uses in Office
applications works correctly.

Thanks,
Ramana


"drhalter" wrote in message
...
You could try this:

OptButton1_Enter()
OptButton1 = True
End Sub

OptButton2_Enter()
OptButton2 = True
End Sub

I have this code on one of my forms and it works fine. I do find it a
little annoying that the option I want to set doesn't stay if I have to

tab
through all of the options. For example, if I start at OptButton1 and set

it
true, then tab through OptButton2, I always have to go back and reset
OptButton1, then use the mouse or an accelerator key to avoid setting the
focus on OptButton2 in order to avoid setting it to true.

Good luck

Dave



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
selecting using option buttons in excel stedroyf Excel Worksheet Functions 0 November 3rd 06 09:01 PM
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
Using 'Option Buttons' Julian Excel Discussion (Misc queries) 3 August 17th 05 07:36 PM
Option Commands (Option Explicit / Option Base etc) - Scope Alan Excel Programming 8 November 1st 04 02:22 AM


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

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

About Us

"It's about Microsoft Excel"