+ Reply to Thread
Results 1 to 5 of 5

Checkboxes If Else condition..

  1. #1
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Checkboxes If Else condition..

    Hello,

    I have a 2 userforms:

    Userform1: List of Names
    Userform2: List of Hobbies

    I have a code for the "DbClick" event for every checkboxes wherein it will select a specific cell.

    Sample is:
    Please Login or Register  to view this content.
    For every activecell, it will execute the below code:
    Please Login or Register  to view this content.
    My problem is that, when I select "Roberto" or "Gio" or "Kelly" or "John" though it will select their specific ranges, the "Hobby" is not populating in the activecell.
    I have attached my workbook.

    Thanks in advance Gurus!
    Attached Files Attached Files
    Last edited by siobeh; 04-24-2014 at 03:20 PM.

  2. #2
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Checkboxes If Else condition..

    Anyone can help me on this please?

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Checkboxes If Else condition..

    I was trying to figure out your flow but it was a little challenging (I would have set it up differently but I tried to work with the way you had it set up). I assumed that you will only have 1 checkbox checked at a time. Here is the code for the 2 userforms

    UserForm1:
    Please Login or Register  to view this content.
    Userform2 (actually calling Subroutine names):

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Checkboxes If Else condition..

    Hi stnk,

    I've trying to adopt the code that you've provided by I'm getting an error "Invalid Next control variable reference"

    I have this module:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Checkboxes If Else condition..

    Hi stnk,

    I've figured it out: I've missed type

    Please Login or Register  to view this content.
    insted of
    Please Login or Register  to view this content.
    What if the format is like in the attached file? how can i amend the code so it will suite up? It still the same like the other, but this this time, it will not based on the names but based on the merged center cells.

    For example: A2:A4, you will see that it will merged in Column B.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] IF the condition of gender is met AND the condition of age is met subtract this number
    By arsenalmom in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-16-2014, 11:16 PM
  2. [SOLVED] Help for if condition formula result only either hit or miss from mulitple condition
    By breadwinner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2013, 07:29 AM
  3. Replies: 4
    Last Post: 04-28-2013, 12:47 AM
  4. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 AM
  5. multi condition format? lookup and date condition valid for.
    By D_Rennie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2009, 11:37 AM

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