Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Evaluate OptionGroup in XL Dialog

Hello there,

how do I know which option button has
been clicked on in a group / frame on a vba dialog.

Couldn't find an index property in vba dialogs as is
the case in vb.

Any help appreciated.

Kind regards,

H.G. Lamy


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Evaluate OptionGroup in XL Dialog

Try something like

Select Case True
Case Me.OptionButton1.Value
MsgBox "button1"
Case Me.OptionButton2.Value
MsgBox "button2"
Case Me.OptionButton3
MsgBox "button3"
End Select



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"hglamy" wrote in message
...
Hello there,

how do I know which option button has
been clicked on in a group / frame on a vba dialog.

Couldn't find an index property in vba dialogs as is
the case in vb.

Any help appreciated.

Kind regards,

H.G. Lamy




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Evaluate OptionGroup in XL Dialog

Thank you Chip, that does it.

However, I don't understand why in the
XL-help file a frame control / grouping
is said to make the option buttons
automatically mutually exclusive.
That doesn't seem to work.

Anyway, I do it as you suggest, thanks,

Regards,

H.G. Lamy




"Chip Pearson" schrieb im Newsbeitrag
...
Try something like

Select Case True
Case Me.OptionButton1.Value
MsgBox "button1"
Case Me.OptionButton2.Value
MsgBox "button2"
Case Me.OptionButton3
MsgBox "button3"
End Select



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"hglamy" wrote in message
...
Hello there,

how do I know which option button has
been clicked on in a group / frame on a vba dialog.

Couldn't find an index property in vba dialogs as is
the case in vb.

Any help appreciated.

Kind regards,

H.G. Lamy






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Evaluate OptionGroup in XL Dialog

Chip,

while trying something like this:

For Each x In Frame1.Controls
....

I accidentally named "Frame1"
differently in code and properties.

My mistake.

Thank you for your help.

Regards,

H.G. Lamy




"Chip Pearson" schrieb im Newsbeitrag
...
You can in fact use the Frame control to group option buttons, and
you can also use the GroupName property to group several option
buttons on a form, without using a Frame control. What do you
mean specifically when you say that it doesn't seem to work?


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"hglamy" wrote in message
...
Thank you Chip, that does it.

However, I don't understand why in the
XL-help file a frame control / grouping
is said to make the option buttons
automatically mutually exclusive.
That doesn't seem to work.

Anyway, I do it as you suggest, thanks,

Regards,

H.G. Lamy




"Chip Pearson" schrieb im Newsbeitrag
...
Try something like

Select Case True
Case Me.OptionButton1.Value
MsgBox "button1"
Case Me.OptionButton2.Value
MsgBox "button2"
Case Me.OptionButton3
MsgBox "button3"
End Select



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"hglamy" wrote in message
...
Hello there,

how do I know which option button has
been clicked on in a group / frame on a vba dialog.

Couldn't find an index property in vba dialogs as is
the case in vb.

Any help appreciated.

Kind regards,

H.G. Lamy










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
evaluate afdmello Excel Worksheet Functions 3 May 16th 10 09:11 PM
Evaluate function Stefi Excel Worksheet Functions 7 November 21st 07 12:50 PM
Might be a bug in Evaluate Formula? cyx Excel Discussion (Misc queries) 2 May 2nd 07 10:52 PM
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
evaluate HYPERLINK() rabbit ribbit Excel Worksheet Functions 1 March 2nd 05 12:09 PM


All times are GMT +1. The time now is 08:27 AM.

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"