gemcgraw
Board Regular
- Joined
- Mar 11, 2011
- Messages
- 72
Hello - I found the following code on a thread here, but it doesn't do anything. I'd like to get someone to verify it for me. I can't find the original post any longer to contact the person who suggested it to another person. You're help and patience is most appreciated.
I have this code in a macro on the "PREV-DROP" worksheet. The destination sheet, as spelled out in the code is for "CURR-FILTER" worksheet. Any reason why this code doesn't error out but doesn't return any action? I assigned Ctrl+Shift+R to the macro... nothing. I even opened the code and ran it in the VB Editor... nothing. It should be copying any row from "PREV-DROP" sheet to "CURR-FILTER" sheet IF the word "DROPPED" does not exist in cells Bx.
Code:
Sub MoveNonDrop()
Dim couNter As Long
Dim RowCount As Long
Application.ScreenUpdating = False
RowCount = Range("B905").End(xlUp).Row
couNter = 1
Do Until couNter > RowCount
If Range("B" & couNter).Value = "DROPPED" Then
Range("B" & couNter).EntireRow.Copy Destination:=Sheets("CURR-FILTER"). _
Range("B905").End(xlUp).Offset(1, -2)
RowCount = RowCount - 1
couNter = couNter - 1
End If
couNter = couNter + 1
Loop
Application.ScreenUpdating = True
End Sub
I have this code in a macro on the "PREV-DROP" worksheet. The destination sheet, as spelled out in the code is for "CURR-FILTER" worksheet. Any reason why this code doesn't error out but doesn't return any action? I assigned Ctrl+Shift+R to the macro... nothing. I even opened the code and ran it in the VB Editor... nothing. It should be copying any row from "PREV-DROP" sheet to "CURR-FILTER" sheet IF the word "DROPPED" does not exist in cells Bx.