+ Reply to Thread
Results 1 to 6 of 6

Using IF to code option buttons and list boxes

  1. #1
    Registered User
    Join Date
    04-07-2010
    Location
    Kings Park, NY
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Using IF to code option buttons and list boxes

    I have a spreadsheet with a list of daily job tasks that need to be put into a list box and to be counted as they are performed.

    so I want to hit a command button and change the value of a cell up and down (based on the value of the list box)
    and specify which worksheet (based on the option button selected)
    I have a worksheet for each day of the work week.
    So if option button 1 called monday is selected then i need the user form to refer to the proper worksheet..
    I have the command buttons working for a particular cell but don't know how to use the If else statements

    Please help..i know how to do formulas in a spreadsheet, but user forms programming is new to me..
    Please Login or Register  to view this content.
    Last edited by royUK; 04-07-2010 at 01:01 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: Using IF to code option buttons and list boxes

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

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

    Free DataBaseForm example

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

    Re: Using IF to code option buttons and list boxes

    I've added the Code Tags,make sure that you read the Forum Rules before posting again.

    Attaching an example workbook would help

  4. #4
    Registered User
    Join Date
    04-07-2010
    Location
    Kings Park, NY
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using IF to code option buttons and list boxes

    sorry! thanks..it's my first post..and i'm at work

  5. #5
    Registered User
    Join Date
    04-07-2010
    Location
    Kings Park, NY
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using IF to code option buttons and list boxes

    I attached the spreadsheet if that helps...
    What i'm doing is creating a clicker to tally things as u go instead of writing marks on paper and then entering them in at the end of the day

  6. #6
    Registered User
    Join Date
    04-07-2010
    Location
    Kings Park, NY
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using IF to code option buttons and list boxes

    i don't need the option buttons if i put this form on each worksheet. But do i have to write a line of code for each value in the list box?
    I want the program to see the current selection in the list box and refer to the proper row in the spreadsheet where it is listed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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