RAM_82
New Member
- Joined
- Nov 17, 2008
- Messages
- 4
Dear readers,
I know this is a common question as I have read other threads related to this issue. But it seems I can't apply the solutions from the other treads - probably due to my lack of experience with VBA. So I hope someone is able te guide me in the right direction
I use to keep track of my work tasks. When I get a new task I add it to the spreadsheet and I assign it a status (column M = dropdown list). What I would like to do is to enable a macro that moves the entire row (when a selection has been made from the dropdown list) to the corresponding sheet.
Example. Value dropdown menu is "done", then the entire row should be moved (not copied) towards sheet "Done".
I've tried various solutions (see below) without getting there entirely
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
Application.EnableEvents = False
If Intersect(Target, Range("M:M")) Is Nothing Then Exit Sub
If Target = "Done" Then
Target.EntireRow.Copy Sheets("Done").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
Target.EntireRow.Delete
End If
Application.ScreenUpdating = True
End Sub
I'm looking forward to read your advice(s).
I know this is a common question as I have read other threads related to this issue. But it seems I can't apply the solutions from the other treads - probably due to my lack of experience with VBA. So I hope someone is able te guide me in the right direction
I use to keep track of my work tasks. When I get a new task I add it to the spreadsheet and I assign it a status (column M = dropdown list). What I would like to do is to enable a macro that moves the entire row (when a selection has been made from the dropdown list) to the corresponding sheet.
Example. Value dropdown menu is "done", then the entire row should be moved (not copied) towards sheet "Done".
I've tried various solutions (see below) without getting there entirely
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
Application.EnableEvents = False
If Intersect(Target, Range("M:M")) Is Nothing Then Exit Sub
If Target = "Done" Then
Target.EntireRow.Copy Sheets("Done").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0)
Target.EntireRow.Delete
End If
Application.ScreenUpdating = True
End Sub
I'm looking forward to read your advice(s).
Last edited: