This is a tough one, I hope some gurus can help me. I have coding that does number 1&2, but I can't figure out how to keep that and do 3 and 4.
I'm going to attach the document and then explain what I'm trying to have happen.
1) worksheet named current: when I change the status in status column to Booked - the entire row will be deleted and moved to the Booked worksheet.
2) worksheet named current: when I change the status in the status column to DNMQ - the entire row will be deleted and moved to the DNMQ worksheet.
3)worksheet named current: when I change the status in the status column to Application, I want todays date to appear in the App Date column (G). I don't want this date to change each time its updated or saved though. A static date if you will. Also, if I change from Approved to closing I dont want the date to change in the column G. Once its there I don't need it to change for tracking purposes.
4) Finally, when there is a change in columns A-F I want another static date to appear in column J. This date wont change until their is any change in columns A-F.
Any help or ideas would be so appreciated.
Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) ' stanleydgromjr, 09/05/2011 ' Version 3, after copying the Target.Row, delete the Target.Row ' http://www.excelforum.com/excel-programming/790860-move-entire-row-to-another-worksheet-based-on-cell-value.html If Intersect(Target, Range("D:D")) Is Nothing Then Exit Sub If Target.Count > 1 Then Exit Sub If Target = "" Then Exit Sub Dim P As Long, NR As Long With Application .EnableEvents = False .ScreenUpdating = False Select Case Target.Value Case "Booked" P = Application.Match("Potential", Worksheets("Booked").Columns(4), 0) NR = Worksheets("Booked").Range("D" & P).End(xlUp).Offset(1).Row Range("A" & Target.Row & ":J" & Target.Row).Copy Worksheets("Booked").Range("A" & NR) Rows(Target.Row).Delete Case "DNMQ" P = Application.Match("Potential", Worksheets("DNMQ").Columns(4), 0) NR = Worksheets("DNMQ").Range("D" & P).End(xlUp).Offset(1).Row Range("A" & Target.Row & ":J" & Target.Row).Copy Worksheets("DNMQ").Range("A" & NR) Rows(Target.Row).Delete End Select .EnableEvents = True .ScreenUpdating = True End With End Sub
Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
regards pike
If the solution helped please donate here to the RSPCA
Sites worth visiting;
J&R Solutions - royUK
AJP Excel Information - Andy Pope
Spreadsheet Toolbox
VBA for smarties - snb
In addition, it's a duplicate post. Please continue in your original thread.
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks