Moving Completed Task onto separate excel sheet?

Lucy_Wood

New Member
Joined
Feb 21, 2020
Messages
9
Office Version
  1. 2010
Platform
  1. Windows
I am creating a to-do list for my job. I have two sheets

'Open Tasks
' and 'Compleated Tasks'

I'd like the rows with tasks once marked 'Compleated' on Open Tasks, to move automatically to the Compleated Tasks tab.

From what I've read on other threads, I think this requires VBA and as I have absolutely no knowledge of VBA, I was wondering if someone could help me with this?

TIA
 
Please start a thread of you own, for the question. Thanks
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try this:
This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab named Open Tasks
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

When you enter Completed in any cell in column E the script will run
You said move so this script copies the row to other sheet.
You did not say delete row from existing sheet. If you want that you will have to say so.

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified 2/21/2020 9:01:00 AM EST
If Target.Column = 5 Then
If Target.Cells.CountLarge > 1 Or IsEmpty(Target) Then Exit Sub
Dim Lastrow As Long
Dim SheetName As String
SheetName = "Completed Task"
Dim SearchValue As String
SearchValue = "Completed"
If Target.Value = SearchValue Then
Lastrow = Sheets(SheetName).Cells(Rows.Count, 5).End(xlUp).Row + 1
Rows(Target.Row).Copy Sheets(SheetName).Rows(Lastrow)
End If
End If
End Sub
Hi - if you do this and it copies it to the next worksheet, which it does, but then for some reason I need to change the status back to 'in progress' can it be done so that it automatically removes it from the worksheet it copied it to pls?
 
Upvote 0
Hi - if you do this and it copies it to the next worksheet, which it does, but then for some reason I need to change the status back to 'in progress' can it be done so that it automatically removes it from the worksheet it copied it to pls?
You need to start a new posting and explain in detail what you're attempting to do.
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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