Microsoft
Software
Hardware
Network
Question : Reference option button
I have a function that will perform a task in one of three diffeernt ways depending on the selection of a radio button in an excel worksheet. I need to be able to reference each radio button and see if it is checked or not, but I can't find a way of doing this. I have been trying things like
If ActiveSheet.OptionButtons(
"OptionBut
ton19").Va
lue = -1 Then
If Sheets("TechnicalData").Op
tionButton
s("OptionB
utton19").
Value = -1 Then
but neiter of these work. Can someone please tell me how this is done?
Thank you
Answer : Reference option button
If it's an option button from the Forms Toolbar, then the code would most likely be:
If Sheets("TechnicalData").Op
tionButton
s("Option Button 19").Value = 1 Then
since they default to having spaces in the name, and the value when checked is 1.
Random Solutions
What is datatype #9?
ExMerge Not Working
Rename a user in SBS 2003 R2 active directory
How to sort complecated text in excel
FOLDER OPTIONS AND SEARCH NO LONGER IN WIN XP
If a field is blank I need it let other calculations after it work in a form. I know that its something to do with a null.
How to use Sharepoint Lookup Field with Name column (hyperlink)
FltMgr will not load in windows 2000 server
Can't see hidden files
SBS 2008 / Exchange Server 2007/Outlook 2007 Sync Error 0X80072F06 - Offline Address Book