+ Reply to Thread
Results 1 to 5 of 5

Quick method of replicating check boxes and relevant cell link

  1. #1
    Registered User
    Join Date
    02-06-2007
    Posts
    2

    Quick method of replicating check boxes and relevant cell link

    I am designing a pupil data sheet where I am using a fairly large number of check boxes to record a response of TRUE or FALSE in an adjacent cell. I need to replicate a column of tick boxes that have a cell link referenced to the cell in the column next to it; I have been doing it manually and gave up after 5.

    I know I could achieve this using a Yes or No or 1 or 0 from a drop down list for each cell; but the tick boxes look and feel right. And for busy teachers it needs to be quick and effective.

    Any help would be gratefully appreciated

    Ken

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Ken ,

    You will need to use a VBA macro to install the checkboxes. This macro will install checkboxes in each cell of your selection and link them to the second macro which will place True/False in the adjacent cell to the right of the CheckBox.

    After you copy the code for the macros, add a Standard VBA Module to your Workbbok, and then paste the code into it.

    To add the CheckBoxes, select a row of cells you want the CheckBoxes in. Press ALT+F8 to display the Macro Dialog box. Select "AddCheckBoxes" and click "OK". Dont worry if you accidentially select more than 1 column. The macro will only put CheckBoxes in the first column of your selection.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Last edited by Leith Ross; 04-18-2007 at 07:46 PM.

  3. #3
    Registered User
    Join Date
    02-06-2007
    Posts
    2

    Thumbs up Replicating Check Boxes

    Hi Leith

    This is superb and I really appreciate the time and effort you have given. Worked like a charm!

    I am an educational advisor in Plymouth in the UK. My own excel skills are to say the least fairly limited so to have a piece of code like this in a pupil progress sheet that may be used across the city to support a national programme is very helpful.

    What a great forum this is!

    Once again many thanks

    Ken

  4. #4
    Registered User
    Join Date
    05-09-2007
    Posts
    1

    modifying created checkboxes

    The code worked great for me as well. Although I realized that I wanted to edit the check boxes that I had just created after I ran the macro. I attempted to delete them and then rerun the macro after making my adjustments in the VB editor, but they do not delete very easily since they are the same size as the cells. Is there a way to mass delete the checkboxes or do I need to delete them one by one?

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello SDDriver,

    Use this macro to delete all the CheckBoxes on the Worksheet...

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

+ 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