dropdown moves data to sheet2

Bill the buddha

New Member
Joined
Mar 1, 2018
Messages
4
I would like to have it setup so that when the sheet1 drop-down (column 'B') containing todo, in progress, complete, upon 'complete' selection it will auto move the data in that line to the next available line on sheet2 then the data on sheet one will "clear continence"
 
Last edited by a moderator:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Well your image came out looking like a mess.

You said:
I would like to have it setup so that when the sheet1 drop-down (column 'B') containing todo, in progress, complete, upon 'complete' selection it will auto move the data in that line to the next available line on sheet2 then the data on sheet one will "clear continence"

I want you to give me sheet names like this:

Sheet named "Master" and sheet named "Total"

Put the sheets name in quotations.

And the value you plan to put in column "B" in exact quotes like this:

"Apple"

Or "apple"



Then i will try and help you.
 
Last edited:
Upvote 0
thanks MAIT,

so on the "Master" sheet I would like the drop down in column "B" having "Todo" "In Progress" and "Complete" upon selection of "complete" it will move the data in that line to the next available line on sheet "Completed"

I don't know why my images didn't show up... you are right it is a mess.
 
Upvote 0
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
Select View Code from the pop-up context menu
Paste the code in the VBA edit window
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified 3-2-18 5:10 PM EST
If Target.Column = 2 And Target.Count = 1 And Target.Value <> "" Then
If Target.Value = "Complete" Then
Dim ans As Long
Dim Lastrow As Long
Lastrow = Sheets("Completed").Cells(Rows.Count, "B").End(xlUp).Row + 1
ans = Target.Row
Rows(ans).Copy Sheets("Completed").Rows(Lastrow)
End If
End If
End Sub
<strike>
</strike>
 
Last edited:
Upvote 0
BIG Thanks MAIT,

Sorry it took me a while, I was away for a few days.
It does copy the info to sheet "Completed" however it does not 'clear continence' of the line from sheet "Master" afterward. Is there a way to have it do that?
 
Upvote 0
Try this:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified 3-7-18 11:45 AM EST
If Target.Cells.Count > 1 Or IsEmpty(Target) Then Exit Sub
If Target.Column = 2 And Target.Count = 1 And Target.Value <> "" Then
Application.EnableEvents = False
If Target.Value = "Complete" Then
Dim ans As Long
Dim Lastrow As Long
Lastrow = Sheets("Completed").Cells(Rows.Count, "B").End(xlUp).Row + 1
ans = Target.Row
Rows(ans).Copy Sheets("Completed").Rows(Lastrow)
Rows(ans).ClearContents
End If
Application.EnableEvents = True
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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