Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default stuck on option buttons

I have a simple question, I think, for all you experts out there. I have two
option buttons in a textbox in a spreadsheet. I want to know the state (or
value) of each of the buttons at any given time. I cannot seem to find the
correct property name for the button to extract the value. I can find out
their name, position, etc from the shapes list, but I need the actual value.
The buttons are named opt_BUT1 and opt_BUT2. How can I determine the value
of these buttons?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default stuck on option buttons

activesheet.optionbuttons("opt_But2").value

if it is a forms button (will return 1 or -4146, xlon or xloff)

activesheet.oleobjects("opt_But1").object.value

for a control toolbox button, return True/False

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"excel_stuck" <u23938@uwe wrote in message news:630750acfe46f@uwe...
I have a simple question, I think, for all you experts out there. I have

two
option buttons in a textbox in a spreadsheet. I want to know the state

(or
value) of each of the buttons at any given time. I cannot seem to find

the
correct property name for the button to extract the value. I can find out
their name, position, etc from the shapes list, but I need the actual

value.
The buttons are named opt_BUT1 and opt_BUT2. How can I determine the

value
of these buttons?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default stuck on option buttons

That's it! Thanks so much!

Bob Phillips wrote:
activesheet.optionbuttons("opt_But2").value

if it is a forms button (will return 1 or -4146, xlon or xloff)

activesheet.oleobjects("opt_But1").object.value

for a control toolbox button, return True/False

I have a simple question, I think, for all you experts out there. I have two
option buttons in a textbox in a spreadsheet. I want to know the state (or

[quoted text clipped - 3 lines]
The buttons are named opt_BUT1 and opt_BUT2. How can I determine the value
of these buttons?

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
deletion of option buttons gvm Excel Worksheet Functions 2 March 6th 06 12:56 AM
Checkboxes vs. Option Buttons JW_4222 Excel Discussion (Misc queries) 2 February 1st 06 01:38 PM
Option Buttons coryrey Excel Discussion (Misc queries) 1 January 6th 06 03:49 PM
Can the captions for Option Buttons be drawn from other cells ? hedonist68 Excel Discussion (Misc queries) 3 September 8th 05 02:25 PM
Using 'Option Buttons' Julian Excel Discussion (Misc queries) 3 August 17th 05 07:36 PM


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