+ Reply to Thread
Results 1 to 6 of 6

Multiple Checkboxes

  1. #1
    Registered User
    Join Date
    01-09-2015
    Location
    Des Moines, IA
    MS-Off Ver
    2010
    Posts
    62

    Multiple Checkboxes

    Hi All,

    I have approximately 4 checkboxes on a userform template that when I hit a command button, whichever four boxes are clicked "True" would populate into a bookmark named "Clients"

    My issue here is the punctuation if more than 1 and 2 boxes are checked. My four boxes are Client 1, Client 2, Client 3, and Client 4.

    If only Client 1 is checked true, -- "Client 1" would populate
    If Client 1 and 2 are checked true, "Client 1 and 2" would populate
    If Client 1, 2 and 3 are checked true, "Client 1, 2, and 3" would populate....

    And so on.

    Please let me know if there is an easy fix to this.

    Thank you!

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Multiple Checkboxes

    What is the code you are using?
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Registered User
    Join Date
    01-09-2015
    Location
    Des Moines, IA
    MS-Off Ver
    2010
    Posts
    62

    Re: Multiple Checkboxes

    I have no code right now, I'm not 100% sure even where to start. I'm assuming it could be IF statements:

    (IF AND checkbox1 = Client 1 checkbox2 = Client 2) THEN "Client 1 and Client 2", (IF AND checkbox 1 = Client 1, checkbox 2 = client 2, checkbox 3 = client 3) THEN "Client 1, Client 2, and Client 3"

    I dont necessarily want 16 statements though.

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Multiple Checkboxes

    Can any checkbox be checked at random, or do they need to be checked in sequence?

  5. #5
    Registered User
    Join Date
    01-09-2015
    Location
    Des Moines, IA
    MS-Off Ver
    2010
    Posts
    62

    Re: Multiple Checkboxes

    Quote Originally Posted by macropod View Post
    Can any checkbox be checked at random, or do they need to be checked in sequence?
    The checkboxes can be checked at random.

  6. #6
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Multiple Checkboxes

    I seem to have missed your reply. Given that the checkboxes can be checked at random, are the data to be inserted in the order in which the checkboxes are checked, or in a pre-defined order?

+ 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. Multiple checkboxes
    By Erik S in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-06-2015, 01:16 PM
  2. Replies: 2
    Last Post: 11-01-2013, 03:23 AM
  3. 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
  4. Multiple checkboxes
    By excelhelp18 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-05-2010, 01:40 AM
  5. Multiple checkboxes
    By MrPez in forum Excel General
    Replies: 1
    Last Post: 08-27-2009, 06:35 AM
  6. Multiple Checkboxes and VB - help please
    By TomTom_BV in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-28-2008, 04:10 AM
  7. Multiple Checkboxes
    By riedej2 in forum Excel General
    Replies: 1
    Last Post: 03-09-2005, 07:45 PM

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