+ Reply to Thread
Results 1 to 8 of 8

changing optionbutton.value if = true to have result "1" in cell

  1. #1
    Registered User
    Join Date
    02-03-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    changing optionbutton.value if = true to have result "1" in cell

    Once again, after searching and failed attempts, help is needed. i did try examples of other solutions found in the forum. Is there a simple solution, by changing something in the button properties?

    My current code below allows data from a userform to goto specific sheets and cells. Currently my option button named winbutton if true will display "true" in cell. i need it to be numerical value "1". Help please?

    Thanks.

    Please Login or Register  to view this content.
    Last edited by Ceeseven; 02-10-2009 at 01:35 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: changing optionbutton.value if = true to have result "1" in cell

    Try
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    02-03-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: changing optionbutton.value if = true to have result "1" in cell

    thanks again Roy.

    i will try it and let you know.

  4. #4
    Registered User
    Join Date
    02-03-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: changing optionbutton.value if = true to have result "1" in cell

    Roy it works perfect.

    Thank you.

  5. #5
    Registered User
    Join Date
    10-04-2012
    Location
    Warrenton, VA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    5

    Re: changing optionbutton.value if = true to have result "1" in cell

    Would this work?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Here's a slightly different way.
    Please Login or Register  to view this content.
    You don't say what to put in the cell if the button is false so I've used 0.
    If posting code please use code tags, see here.

  7. #7
    Registered User
    Join Date
    10-04-2012
    Location
    Warrenton, VA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    5

    Re: changing optionbutton.value if = true to have result "1" in cell

    Sorry, yeah you're right. I had my cells conditional formatted =A1<>1 white font so it looks blank.

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,627

    Re: changing optionbutton.value if = true to have result "1" in cell

    Sven62, Norie, this thread is 4 years old.

    Ceeseven hasn't been around since 05-10-2010 08:54, so what's the point?
    Ben Van Johnson

+ 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