Results 1 to 6 of 6

Thread: [RESOLVED] Can we:- Use Option button with "if"

  1. #1

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90

    Resolved [RESOLVED] Can we:- Use Option button with "if"

    Hi,
    I want to extract the value of a option button (radio button) using the "if" formula in excel.

    The basic issue is, I don't want to enable macros and also want to know if a option button is selected or not.

    Can this be done anyhow.

    Thanks you
    Satti Charvak

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Can we:- Use Option button with "if"

    VB Code:
    1. If Option1.Value = True
    2.    'it has been selected...do something
    3. End If

  3. #3

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90

    Thumbs up Re: Can we:- Use Option button with "if"

    Thanks Hack for your reply but I guess you haven't understood my query completely.

    That was a VB code (used only for macro).

    I wanted to know if something like:-

    =IF(Option2.Value=TRUE,"True","False") 'A formulae based thing in a cell

    works in excel.

    Kind Regards
    Satti charvak

    Ps:- Also, if possible please move this query to office development, I've wrongly placed this in database development.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Can we:- Use Option button with "if"

    Moved

  5. #5
    Hyperactive Member VB4fun's Avatar
    Join Date
    May 2003
    Location
    too far from Fiji
    Posts
    342

    Re: Can we:- Use Option button with "if"

    Try Using Properties\Linked Cell, set the cell to one you are not using.

    Then do your test on the linked cell value.
    Talk does not cook rice.
    -Chinese Proverb

  6. #6

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90

    Resolved Re: Can we:- Use Option button with "if"

    that was very nice

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width