+ Reply to Thread
Results 1 to 20 of 20

ActiveX checkbox to insert a cell from a different workbook

  1. #1
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    ActiveX checkbox to insert a cell from a different workbook

    I am fairly new to Excel, just a novice user, but I am attempting to get more in depth with the Visual Basics and Macros.
    I am hoping I find the help in these forums to resolve my issues.

    I have created a monthly expense sheet to view my payments and show me available funds.
    My problem is the new year coming. I have been able, up to this point, to coping from one sheet (tab) to the other, but I am now adding in these ActiveX checkboxes. I want to check it to have it bring in the balance from the previous year workbook.

    Is there a way to do this?

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: ActiveX checkbox to insert a cell from a different workbook

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    I apologize for the delay in my response. I have been very busy with the holidays and wasn't quite sure how to do what you asked of me. I hope this is good enough.
    Attached Files Attached Files

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: ActiveX checkbox to insert a cell from a different workbook

    Hi Whyte,

    This is only what you've requested Whyte.xlsm - let me know of issues

  5. #5
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    Absolutely correct; however, if it is unmarked, or false, it needs to be removed and go back to 0.00.

    How can this be done??

  6. #6
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    Ok, this did not work when I tried to copy code and paste. I renames check boxes as they were different numbers, and instead of Loan, it is Home Loan. I changed these and it doesn't work in my worksheet.

  7. #7
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    I see, you used From controls rather than ActiveX controls.. Ok, let me change my check boxes and see if that makes a difference.

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: ActiveX checkbox to insert a cell from a different workbook

    Hi Whyte,

    I used ActiveX Controls, only changing the captions to CB1 and CB2 respectively - maybe you could attach the current copy of your book?

    Do you mean that the values should revert to zero if the checkbox becomes unchecked

    Please Login or Register  to view this content.
    Last edited by xladept; 01-05-2015 at 07:35 PM.

  9. #9
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    This is the actual workbook and worksheets.

    Yes, if the box is unchecked, it should revert back to its prior state of 0.00. This is because sometimes the wrong box gets checked to begin with.
    Attached Files Attached Files

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: ActiveX checkbox to insert a cell from a different workbook

    I patched Whyte.xlsm

  11. #11
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    That is working beautifully, thank you.
    I have to ask one more question though. Maybe two. LOL. I need to put ActiveX controls in all those cells going down, is there a way to do so instead of individually doing them and having them sized to the preset size?

    I figure after they are all in, I can go back through and and the code.

    Again, I thank you for your help thus far.

    Joe Sargent

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: ActiveX checkbox to insert a cell from a different workbook

    Hi Joe,

    Do you really want all those checkboxes, with code for each? How about an event procedure or a button triggering on the activecell.row?? But a copy paste could place them for you??

  13. #13
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    What is an event procedure or a button triggering???

    Not all cells will need the code, but to be able to check the boxes as a bill comes in is helpful to me. I have had several head injuries and tend to forget things. This method helps me determine when a bills comes in and is paid also triggering the next sheet with the values from the previous.

  14. #14
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: ActiveX checkbox to insert a cell from a different workbook

    Sorry to hear about your head - an event procedure is a procedure initiated by some sort of change in the spreadsheet - I commonly use the change or the selection change event - a button could be an ActiveX command button - either one could know what you wanted by the active cell row - come to think of it, a doubleclick event sound appropriate for what you want - but we need a way to nail the correct Home Loan fields to be chosen

  15. #15
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    Thank you for you compassion. I still do not know what you are talking about. LOL. Selection change event?? Doubleclick event?? The Home Loan fields would always be the same, just one below each month. The sheet you helped on is a budget sheet for January of this year. The next sheet to b added is February and so on.

  16. #16
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: ActiveX checkbox to insert a cell from a different workbook

    So - would you just have the two checkboxes on each sheet?

  17. #17
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    No, I would have them all the way down doing different things. I will send post on line for you to look at in a little while. I gotta run a friend to the store.
    Send me a friend request on FB. Joe Sargent

  18. #18
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: ActiveX checkbox to insert a cell from a different workbook

    Hi Joe,

    I'm also busy - maybe tomorrow

  19. #19
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    I still need help getting this figured out..
    I also have a new question, which is adding multi activex controls in one cell to determine how a bill was paid and from where.
    Anyone that can offer some advice and even pointers, is welcome.....
    Attached Files Attached Files
    Last edited by whytewolves; 09-02-2015 at 04:20 PM.

  20. #20
    Registered User
    Join Date
    11-29-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    15

    Re: ActiveX checkbox to insert a cell from a different workbook

    Still looking for help on this workbook

+ 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] Linked Cell for ActiveX Checkbox via VBA
    By Papa Newch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-05-2014, 06:52 PM
  2. Replies: 1
    Last Post: 07-27-2014, 10:57 AM
  3. insert text depending on activeX Checkbox selection
    By daniva92 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 01:47 PM
  4. Replies: 0
    Last Post: 09-18-2012, 11:24 AM
  5. Using ActiveX CheckBox Control to make a cell change colour and clear values
    By drmit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2012, 04:18 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