Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default group name for form controls

How can I access the group name property for the option button control
provided on the forms toolbar? As well as the other porperties of the form
control toolbox?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default group name for form controls

Unlike VB, in Excel VBA the option group box isn't - its
a frame, and doesn't have any properties that are set
when option buttons get set.
shame.
One workaoround is to use each option's click event to
save a number into the frame's TAG property - its not
used by anything else usually.
Then in your process, just read th etag value to get the
option.

Patrick Molloy
Microsft Excel MVP

-----Original Message-----
How can I access the group name property for the option

button control
provided on the forms toolbar? As well as the other

porperties of the form
control toolbox?


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default group name for form controls

This worked ok if the optionbutton (from the forms toolbar) was in a groupbox:

Option Explicit
Sub testme()
Dim optBTN As OptionButton
Set optBTN = ActiveSheet.OptionButtons("Option Button 1")
MsgBox optBTN.GroupBox.Name
End Sub

And you can find lots of properties for these old style things in the Object
browser (F2 in the VBE.)

Right click in the object brower and select show hidden members.

Edwin Merced wrote:

How can I access the group name property for the option button control
provided on the forms toolbar? As well as the other porperties of the form
control toolbox?


--

Dave Peterson

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
Lost Form Controls Vlado Sveda Excel Discussion (Misc queries) 2 December 13th 07 02:54 PM
Form controls in Excel 07 New to Excel 07 Excel Discussion (Misc queries) 1 July 30th 07 04:43 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM
Is it possible to group parts with controls? [email protected] Excel Discussion (Misc queries) 4 October 12th 05 11:10 PM
User Form Controls Zaid Qureshi Excel Programming 0 August 29th 03 12:40 PM


All times are GMT +1. The time now is 01:47 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"