+ Reply to Thread
Results 1 to 7 of 7

Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next cell

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next cell

    Hi,
    I've got checkbox in a worksheet called 'Checklist' and I am using the below code to copy the data in the cells next to the checkboxes when selected into another worksheet named 'Estimate'. The pasted cells are to start from B12. I need to be able to check multiple boxes and have them paste in the next available cells from B12, at the moment they just paste over the top of the current data in B12. I also would like the data cleared when the boxes are deselected, the only code I had figured out clears everything in the worksheet from B12, but I have info in various other columns and rows. I've attached my workbook, please help!!!

    Module:
    Please Login or Register  to view this content.
    Checkbox macros (for each checkbox):
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next

    hmmm they way you are doing it is kind of complicated

    i cleaned up all your check boxes and linked them up properly again with the help of this link
    http://blog.contextures.com/archives...eck-yes-or-no/

    after cleaning up your checkboxes i used an CSE (array) formula to collect a list of items tick checkbox ticked
    the formula is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    based on this output it fills in your front sheet (directly with just a single reference formula
    in B12 = =Checklist!I7

    i also created code to uncheck all checkboxes
    Please Login or Register  to view this content.
    ps i made the row height slightly higher at 18 (you had 15) just so the check box's look a bit better in the cell
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-26-2013
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next

    Hi humdingaling,

    thank you so much for looking into this for me, the only thing is I am avoiding using a formula in the Estimate sheet. Sorry I should have mentioned this to begin with!! Im building this worksheet for some tradies to use who have very basic understanding of excel. The issue with putting formulas in is that they always clear the cell in 'Estimate', therefore clearing the formula. Hence im trying to do it through a macro so they cant just clear it away. Would you have any ideas on how I could fix my macro to do what I need without using a formula in 'estimate'?

    Thanks for your help!

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next

    in that case
    put this code in worksheet(estimate)

    Please Login or Register  to view this content.
    it will automatically copy helper section in column I and paste estimate

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next

    alternatively you can put a button there called "update" and make it do it instead of relying on calculate trigger

    also i suggest hiding column I and column D
    and putting in some application.screenupdating code in there so it doesn't "Flicker"

    i have updated workbook with these suggestions
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-26-2013
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next

    absolutely amazing!! thanks you so much humdingaling :D

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next

    not a problem

    good luck with it

+ 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. Copy/Paste Multiple Selections
    By molly13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2015, 12:59 PM
  2. Replies: 1
    Last Post: 01-15-2014, 11:12 AM
  3. Using a Checkbox to Copy and Paste Data from One Sheet to Another
    By DLnot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2014, 04:57 PM
  4. Copy and paste for multiple selections
    By amartino44 in forum Excel General
    Replies: 3
    Last Post: 07-12-2013, 02:34 PM
  5. [SOLVED] Copy/Paste & Clear Contents Macro on multiple spreadsheet
    By greggatz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-01-2012, 10:16 AM
  6. Copy and paste to the next clear cell???!!!
    By Andrewsayerhpv in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-09-2010, 08:54 AM
  7. use checkbox to copy, paste and delete data
    By nazries in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2010, 08:52 AM

Tags for this Thread

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