+ Reply to Thread
Results 1 to 5 of 5

option button code in main macro

  1. #1
    Registered User
    Join Date
    12-13-2011
    Location
    farmington MI
    MS-Off Ver
    Excel 2003
    Posts
    81

    Lightbulb option button code in main macro

    helo, I have a problem getting value from option button. I would want one of my variable (suffix in below example) to be based on user click optionbutton.

    Here is the example that does'nt seems to be the right way of approach.

    Please Login or Register  to view this content.
    appriciate your help--var

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: option button code in main macro

    Hi var,

    Maybe,

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-13-2011
    Location
    farmington MI
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: option button code in main macro

    hi xladept

    tried with your code, but not successful. var

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: option button code in main macro

    hi var, your posted code contradicts your intensions described.

    May be you meant sort of this:

    Please Login or Register  to view this content.
    Last edited by watersev; 08-18-2012 at 06:34 PM.

  5. #5
    Registered User
    Join Date
    12-13-2011
    Location
    farmington MI
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: option button code in main macro

    hi watersev , that works fine. My idea was to use select case instead of if statement.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1