A
aczocher
Hello-
I am trying to validate a string variable to see whether I need to copy
and paste to another sheet, but I am not getting anywhere. I tried
using Range and Cells, to no avail. Any ideas?
For i = 3 To 350
Sheets(strType).Activate
If Cells(i, 9).Value = strArea Then
Sheets(strType).Range("A" & i & ":AQ" & i).Copy
Sheets("Results").Activate
Sheets("Results").Range("A" & i).Select
Sheets("Results").Paste
End If
Next i
End Sub
I am trying to validate a string variable to see whether I need to copy
and paste to another sheet, but I am not getting anywhere. I tried
using Range and Cells, to no avail. Any ideas?
For i = 3 To 350
Sheets(strType).Activate
If Cells(i, 9).Value = strArea Then
Sheets(strType).Range("A" & i & ":AQ" & i).Copy
Sheets("Results").Activate
Sheets("Results").Range("A" & i).Select
Sheets("Results").Paste
End If
Next i
End Sub