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
Adding a new record and assigning the next number in the sequence
Sharepoint permissions not pulling users from Active Directory.
Sharepoint Backup Fails
RDP Fails to Connect
Excel 2007 / 2003 Compatibility issue from Macro
Verifying DMI Pool Data& A disk read error occurred Press Ctrl+Alt+Del to restart
Access2007 Runtime - running an app without Office 2007 installed
How do I get correct calculations using Dcount in a Report that is based on a filtered table?
Incorrect syntax near '+'
ON_THREAD_MESSAGE