+ Reply to Thread
Results 1 to 4 of 4

Checkbox Link

  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    Honolulu
    MS-Off Ver
    Excel 2013
    Posts
    5

    Checkbox Link

    Am having a bit of a problem. The worksheet we use contains columns A through AB. Some columns contain the formulas needed for processing the information that is input and these are summed at the bottom of the columns. Columns B.C & D contain a checkbox and each of these checkboxes when checked (true) activate a specific column for a calculation. The check boxes beging on row 3. The linked column for each checkbox is in their respective row at columns Z, AA and AB which is used by other formulas to test for the state of the checkbox. Periodically, the number of rows with the same layout and formulas has to be increased to accomodate a larger amount of data input and I need to add a new row below the last existing row (just ahead of the row which holds the summed column data). I have been trying to find a VBA solution that after clicking a button on the worksheet, a new row is added with all of the relevant formulas and link the 3 new checkboxes to their respective columns Z, AA and AB. The button with the attached code is working but am stuck on getting the linked cell to work. This is the code that I am using thus far:

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Checkbox Link

    This should loop through the checkboxes and link the cells

    Please Login or Register  to view this content.
    Remove the msgbox after you have tested it

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Checkbox Link

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    03-24-2013
    Location
    Honolulu
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Checkbox Link

    For some reason there was some hidden things in my worksheet in that one section counts the number of checkboxes which are 60 by default. The count being returned was 100 and once I deleted out several hundred empty rows (wasn't sure how far to go), the script functioned fine. Thanks for the input.

+ 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. VBA Code to Link Multipage to a checkbox form control in Excel
    By Goddy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2017, 02:58 AM
  2. Link this code to a checkbox
    By zanguard80 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2014, 01:41 PM
  3. [SOLVED] Need CheckBox to link to hyperlink/cell to click then take you to corresponding worksheet.
    By Furze in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-21-2013, 05:07 PM
  4. [SOLVED] Checkbox to Link Cells to another Worksheet
    By djsli in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-22-2012, 11:10 AM
  5. Copy Checkbox and change texbox link
    By t0m46 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2010, 06:51 AM
  6. link a checkbox to a conditional formattted cell
    By Lostinexcel2002 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2008, 04:11 AM
  7. [SOLVED] How do I link one checkbox to update another checkbox?
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2006, 09:25 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