Results 1 to 5 of 5

VBA Code for Option Buttons to return YES or NO instead of TRUE or FALSE

Threaded View

  1. #1
    Registered User
    Join Date
    07-29-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    VBA Code for Option Buttons to return YES or NO instead of TRUE or FALSE

    Hello ladies and gentlemen,

    I need some help; I have an Excel spread sheet that I use for data collection for my job. I commission solar inverters. Each row contains information for the station that I am commissioning. I collect this data with a UserForm that I created and this with a button on the UserForm it will fill out the PDF Commissioning Report with the data from that row. Right now I am using list boxes for yes and no because Adobe Acrobat requires “Yes” or “No” for Checkboxes not “True” or “False”. I would like to be able to use OptionButtons.

    Example: There are 3 Station Types, so I would like to have 3 OptionButtons in a group StationType. The options would be named “zAC”, “zAD” and “zAE” (they have to be named that way due to other code in my form) and they would return values “Yes” or “No” to their respective cells AC, AD and AE for the row that I am currently entering data on.

    I’ve searched the internet and tried multiple codes but I can’t get any of them to work, either it still returns “True” or “False” to the cells or I get an error. It’s probably me; I’m not the best with Visual Basics. Any help with a code that would work would be much appreciated.
    Last edited by mebanet; 07-31-2013 at 02:43 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Option buttons return true/false rather than 1/2
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-03-2011, 05:59 PM
  2. Replies: 3
    Last Post: 07-15-2006, 05:20 AM
  3. Check box - true/false - i'd like a third option n/a
    By Kelly 1st in forum Excel General
    Replies: 4
    Last Post: 06-02-2006, 08:15 AM
  4. Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM
  5. IF Statement: How do you have a true and false for each option?
    By timmadge in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2006, 01:45 PM

Tags for this Thread

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