+ Reply to Thread
Results 1 to 4 of 4

VBA Multiple Check box copy range to 'archive tab'

  1. #1
    Registered User
    Join Date
    07-02-2014
    Location
    US
    MS-Off Ver
    2007
    Posts
    6

    VBA Multiple Check box copy range to 'archive tab'

    test.xlsx

    Greetings. I have an Excel table with about 4 or 5 columns and I inserted checkboxes in each row. I wanted to program a button to copy and paste the selected row the the arcive table if the checkbox was checked. I tried to attach the file. If anyone could help that would be great. I only can think of the old fashioned way of program an if statement for every single combobox, which clearly is not ideal.

    Hopefully the attachment went through.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VBA Multiple Check box copy range to 'archive tab'

    I definitely think the layout of you sheet is a horrible way of doing it. With that being said, here is the code that does what you want. IMPORTANT NOTES: 1. Your archive sheet is flawed and as such it thinks that there is data in row 100. So when you run the code it will put the rows with the checked boxes below row 100. If you delete rows 3 to 100 it puts it at the top like desired. 2. This code will only allow 100 checkboxes in the data sheet. I didn't have the time to code for more than that.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-02-2014
    Location
    US
    MS-Off Ver
    2007
    Posts
    6

    Re: VBA Multiple Check box copy range to 'archive tab'

    Thanks for the reply. I'm open to any other ideas to automatically copy a selected row to an archive tab?

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VBA Multiple Check box copy range to 'archive tab'

    I think I would have a "drop down" box (with archive and not archived as options) in column B of the Data sheet. When you are ready to have a row go to archive you simply select "archive". On the back end you would code a worksheet_change event to automatically move that row once "archive" is selected.

+ 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. Check boxes to transfer rows to archive sheet
    By davislach in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2014, 09:50 PM
  2. Copy a range form one sheet to a new Workbook (for archive)
    By crycx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2013, 03:53 PM
  3. [SOLVED] Once a certain date has been reached, copy row of data to archive tab in same workbook
    By photochic10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 10:24 AM
  4. Macro to check range, if false check another range until true, then copy
    By jayers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2009, 04:19 PM
  5. Replies: 0
    Last Post: 07-31-2006, 07:33 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