How To automatically Move Entire Row To a new sheet Based On Cell Value In Excel

Jd2023

New Member
Joined
Jun 28, 2023
Messages
18
Office Version
  1. 365
Platform
  1. Web
Hi all

I would like an entire row to automatically move from the 'work' sheet to the 'finished' sheet, each time the 'AC' column is populated with a date?

Would appreciate any help on this.

Thanks
Jasmine
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your "work" sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. Enter a date in column AC 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 <> 29 Then Exit Sub
    Application.ScreenUpdating = False
    Application.EnableEvents = False
    If IsDate(Target) Then
        Target.EntireRow.Copy Sheets("finished").Cells(Sheets("finished").Rows.Count, "A").End(xlUp).Offset(1)
        Target.EntireRow.Delete
    Else
        MsgBox ("You have not entered a date.")
    End If
    Application.EnableEvents = True
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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