+ Reply to Thread
Results 1 to 3 of 3

Macro to cut and paste data to another based off of Check box.

  1. #1
    Registered User
    Join Date
    04-17-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    Macro to cut and paste data to another based off of Check box.

    Hello,

    Fairly new to VBA but trying to learn.

    My current task is to create a macro that cuts and pastes the complete row based off of a check box(Form Control).

    Data will be in cells B to O with Check Boxes in P. What is the best way to have a button initiated macro that loops through the check boxes in P and if one is ticked then cut and paste the data into Sheet 2 (Archive) on the next available row?
    This would also have to delete the check box in the original row and either not pasted into sheet 2 or not cut.

    Any help would be greatly appreciated.

    Many Thanks
    James

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

    Re: Macro to cut and paste data to another based off of Check box.

    Try something like this. First test this on a copy of your actual data.

    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.

  3. #3
    Registered User
    Join Date
    04-17-2017
    Location
    London
    MS-Off Ver
    365
    Posts
    2

    Re: Macro to cut and paste data to another based off of Check box.

    This worked perfectly.

    Thank you very very much AlphaFrog.

+ 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] Macro to copy paste the data in one sheet to another based on the headers
    By sarajun_88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2016, 10:28 AM
  2. Macro to copy paste the data in one sheet to another based on the headers
    By sarajun_88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2016, 05:32 AM
  3. macro to copy paste data based on column headings
    By kets0985 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2014, 02:26 PM
  4. Macro to sum and paste the data based on date
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2014, 03:19 PM
  5. [SOLVED] Macro to Copy Data and Paste Values Based on cell criteria
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 06:51 PM
  6. MS Excel 2003 macro to copy paste data in different sheets based on certain criteria
    By bhaktprahlad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2010, 06:17 AM
  7. [SOLVED] Macro Syntax to copy and paste dynamic data based on one column
    By jbsand1001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2005, 10:06 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