Need help transferring rows of data in one sheet to another when checkbox checked

FLdave12

Board Regular
Joined
Feb 4, 2022
Messages
62
Platform
  1. Windows
Need help transferring rows of data in one sheet to another when checkbox checked.

I would like to data from DR Waiting List sheet from rows A to M based on checkbox checked off in row N to DR Serving List Sheet.

I am attaching the excel sheet.

Any help would be appreciated. 1st image is sheet want data transferred from from Columns A to M by checking checkbox in column N

1711635853133.png



This sheet is where I want the data from Columns A to M transferred to
1711635964506.png
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Using check boxes actually complicates things. Try this approach. First delete all the check boxes in column N. Next copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your DR Waiting List sheet and click 'View Code'. Copy/paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter a lower case x in a cell in column N and press the ENTER key.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.CountLarge > 1 Then Exit Sub
    If Target.Column <> 14 Then Exit Sub
    If Target = "x" Then
        Range("A" & Target.Row).Resize(, 13).Copy Sheets("DR Serving List").Cells(Sheets("DR Serving List").Rows.Count, "A").End(xlUp).Offset(1)
    End If
    Application.ScreenUpdating = False
End Sub
 
Upvote 0
It worked great is it possible to include in macro to have the row from DR Waiting List sheet be removed after it transfers to DR Serving List?
 
Upvote 0
Try:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.CountLarge > 1 Then Exit Sub
    If Target.Column <> 14 Then Exit Sub
    Application
        .ScreenUpdating = False
        .EnableEvents = False
    End With
    If Target = "x" Then
        Range("A" & Target.Row).Resize(, 13).Copy Sheets("DR Serving List").Cells(Sheets("DR Serving List").Rows.Count, "A").End(xlUp).Offset(1)
        Target.EntireRow.Delete
    End If
    Application
        .ScreenUpdating = True
        .EnableEvents = True
    End With
End Sub
 
Upvote 0
Compile Error: Got error message invalide use of property
Try:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.CountLarge > 1 Then Exit Sub
    If Target.Column <> 14 Then Exit Sub
    Application
        .ScreenUpdating = False
        .EnableEvents = False
    End With
    If Target = "x" Then
        Range("A" & Target.Row).Resize(, 13).Copy Sheets("DR Serving List").Cells(Sheets("DR Serving List").Rows.Count, "A").End(xlUp).Offset(1)
        Target.EntireRow.Delete
    End If
    Application
        .ScreenUpdating = True
        .EnableEvents = True
    End With
End Sub
 
Upvote 0
Those two lines that just have:
VBA Code:
Application
in them
should be:
VBA Code:
With Application
 
Upvote 0
Entered this and still does not transfer data or remove from DR Waiting List sheet

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Target.Column <> 14 Then Exit Sub
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
If Target = "x" Then
Range("A" & Target.Row).Resize(, 13).Copy Sheets("DR Serving List").Cells(Sheets("DR Serving List").Rows.Count, "A").End(xlUp).Offset(1)
Target.EntireRow.Delete
End If
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub
 
Upvote 0
What is the name of the module that you placed the VBA code in?

Also, please use Code Tags when posting your code. It is super simple to do, and makes your code much more readable (like how mumps posted his).
See: How to Post Your VBA Code
 
Upvote 0
@Joe4 Thanks for picking up on that. My slip-up.
@FLdave12 Make sure that the macro is in the worksheet code module not a regular module. Check out instructions in Post #3.
 
Upvote 0

Forum statistics

Threads
1,215,099
Messages
6,123,084
Members
449,094
Latest member
mystic19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top