BIGTONE559
Active Member
- Joined
- Apr 20, 2011
- Messages
- 336
RE: VBA If statement to select row copy row to another cell
Greetings,
I'm new to vba and i'm running into inssues with the following:
I've set up a module and it:
1. Creates a Sluggish environment throughout excel
2. My setup does not find the actual cells with the conditions that i've identified.
I would appreciate any assistance.
Greetings,
I'm new to vba and i'm running into inssues with the following:
I've set up a module and it:
1. Creates a Sluggish environment throughout excel
2. My setup does not find the actual cells with the conditions that i've identified.
I would appreciate any assistance.
Code:
Sub Test()
Dim x As Integer
Dim y As Integer
Dim z As Integer
x = 5
y = 5
z = 5
Application.ScreenUpdating = False
Range("J5:Z10000").ClearContents
If Cells(x, 7).Value <> "Yes" Then
Do Until x = 16
Range(Cells(x, 1), Cells(x, 5)).Select
Selection.Copy
Cells(y, 10).Select
ActiveSheet.Paste
Application.CutCopyMode = False
x = x + 1
y = y + 1
Loop
End If
Application.ScreenUpdating = True
End Sub