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

Ramana,

I just thought of this. If you look at Excel's Insert Cells... dialog box,
you are forced to use arrow keys to navigate the option buttons. If you use
tab, it goes to Ok, Cancel, then back to the one option button that is true,
whichever that is. So I tried to emulate that. We'll use option buttons
opt1, op2, opt3 on userform1

Userform1_Initialize()
opt1.tabstop = true
opt2.tabstop = false
opt3.tabstop = false
End sub

opt1_change()
if opt1 = true then opt1.tabstop = true
if opt1 = false then opt1.tabstop = false
End sub

opt1_enter()
opt1 = true
End Sub

opt2_change()
if opt2 = true then opt2.tabstop = true
if opt2 = false then opt2.tabstop = false
End sub

opt2_enter()
opt2 = true
End Sub

opt3_change()
if opt3 = true then opt3.tabstop = true
if opt3 = false then opt3.tabstop = false
End sub

opt3_enter()
opt3 = true
End Sub

Use tab to enter the opt1, use the arrows to choose which opt you want, you
can then safely use tab to leave.

Dave

"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

Hi Dave,
Thanks for your help. Your solution works fine.

Thanks,
Ramana

"drhalter" wrote in message
...
Ramana,

I just thought of this. If you look at Excel's Insert Cells... dialog

box,
you are forced to use arrow keys to navigate the option buttons. If you

use
tab, it goes to Ok, Cancel, then back to the one option button that is

true,
whichever that is. So I tried to emulate that. We'll use option buttons
opt1, op2, opt3 on userform1

Userform1_Initialize()
opt1.tabstop = true
opt2.tabstop = false
opt3.tabstop = false
End sub

opt1_change()
if opt1 = true then opt1.tabstop = true
if opt1 = false then opt1.tabstop = false
End sub

opt1_enter()
opt1 = true
End Sub

opt2_change()
if opt2 = true then opt2.tabstop = true
if opt2 = false then opt2.tabstop = false
End sub

opt2_enter()
opt2 = true
End Sub

opt3_change()
if opt3 = true then opt3.tabstop = true
if opt3 = false then opt3.tabstop = false
End sub

opt3_enter()
opt3 = true
End Sub

Use tab to enter the opt1, use the arrows to choose which opt you want,

you
can then safely use tab to leave.

Dave

"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





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 Grant90 Excel Discussion (Misc queries) 1 July 29th 05 02:34 PM
Option Buttons Ashman Excel Discussion (Misc queries) 2 July 10th 05 08:24 PM
Navigating between option buttons is not selecting the option Gixxer_J_97[_2_] Excel Programming 4 June 2nd 05 02:50 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 04:42 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"