+ Reply to Thread
Results 1 to 9 of 9

Checkboxes and Cell Linking - for a Macro newbie

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    N. California
    MS-Off Ver
    Excel 2007
    Posts
    10

    Exclamation Checkboxes and Cell Linking - for a Macro newbie

    Hello,
    Thank you for taking the time to potentially assist me with my dilemma.

    I thought I found a post on here that would assist me (in post http://www.excelforum.com/excel-prog...eck-boxes.html)

    But, when I applied it -- the file is still not behaving as desired.

    I have a file with multiple worksheets that will all need to behave the similarly. Each worksheet has 2500 rows. I will just provide two for simplification. The worksheets are: 1) MakeItWork and 2) MakeItWorkCalcs. The MakeItWork worksheet is for data entry (text fields and multiple checkboxes). The MakeItWorkCalcs is for the values of the checkboxes as well a couple of other calculations.

    On the MakeItWork sheet Column E and Column F each have a checkbox to indicate a different week. This checkbox needs to be in all 2500 rows. The value of the checkbox needs to be on MakeItWorkCalcs! in rows B3:B2502.

    The instructions from the other post (answers provided by user Leith Ross) were extremely helpful and basic/straightforward (which is what I need). When I tried to run the macro it correctly populated all 2500 rows with a checkbox. However, only the "true" "false" indicator for the checkbox did not appear on the other worksheet in each subsequent row (B3:B2502). The resulting "true" and "false" would appear in different columns, even though I had indicated in the macro that the answers should appear in MakeItWorkCalcs!B3:B2502.

    I need to be able to use this same macro in additional locations throughout my workbook. Which I don't think is a problem if I understand (roughly what/how) it is functioning in this one example.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Checkboxes and Cell Linking - for a Macro newbie

    a sample file with comments is better then 1000 words
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Checkboxes and Cell Linking - for a Macro newbie

    How exactly did you use the code Leith Ross posted?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    05-02-2013
    Location
    N. California
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Checkboxes and Cell Linking - for a Macro newbie

    Here is the file that I am working with.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-02-2013
    Location
    N. California
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Checkboxes and Cell Linking - for a Macro newbie

    Quote Originally Posted by Norie View Post
    How exactly did you use the code Leith Ross posted?
    I followed the steps provided in the post. I did not modify any of the code. In other words, in the post Leith explains how to copy the source code and paste into the macro builder and then how to apply it. I did that. The macro appeared to work in that it created a checkbox in each of the 2500 rows of the initial worksheet. However, the linked cell on the other worksheet did not appear to work as intended.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Checkboxes and Cell Linking - for a Macro newbie

    Do you really want 10,0000 checkboxes?

    Have you considered using something like this?

    Please Login or Register  to view this content.
    This code, which goes in a worksheet module, will toggle between a tick mark and a blank when you double click any cell in E3:F2500.

    PS If there are 2 checkboxes in each row how can they both be linked to the same cell?
    Last edited by Norie; 07-24-2013 at 12:26 PM.

  7. #7
    Registered User
    Join Date
    05-02-2013
    Location
    N. California
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Checkboxes and Cell Linking - for a Macro newbie

    I don't really want 10,000+ checkboxes. I will look into your suggestion. The 2 or more checkboxes in each row would be solved by having the linked data go to separate cells (at least that is what I was thinking.) I am learning this on the fly as the staff I am working with are asking me and my boss is directing me to make work.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Checkboxes and Cell Linking - for a Macro newbie

    I just tried the code in the link you posted to add 2500 checkboxes for column E, it took about 10 minutes for the code to run.

    Also, when it was done the checkboxes seemed pretty lethargic.

  9. #9
    Registered User
    Join Date
    05-02-2013
    Location
    N. California
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Checkboxes and Cell Linking - for a Macro newbie

    I think I will go this path... Marlett looks much easier and definitely more responsive than all of those checkboxes. Thank you Norie

+ 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. 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
  2. Excel 2007 : Linking Checkboxes
    By Pololuck in forum Excel General
    Replies: 1
    Last Post: 05-08-2012, 11:17 AM
  3. Newbie: userform checkboxes to delete ranges
    By MattyBski in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-15-2011, 03:15 AM
  4. linking checkboxes
    By bkutkut in forum Excel General
    Replies: 22
    Last Post: 10-14-2011, 09:01 AM
  5. Macro Linking Checkboxes to Cells with Relative References instead of Absolute
    By nameyers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2007, 03:00 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