columbo1977
Programmer
Hi All
I have been trying to get this simple piece of code working and it is getting on my nerves??
Can any one help.
We are trying to test the first sheets to see if D holds Outside NYCC and if it does copy the entire row tot he next sheet.
Any iodeas?
Cheers
Columbo
I have been trying to get this simple piece of code working and it is getting on my nerves??
Can any one help.
Code:
Private Sub CommandButton2_Click()
Dim cl As Range
'For Each cl In [D1:D10]
If Range("D1") = "Outside NYCC" Then
Application.ActiveSheet.EntireRow.Select
Application.ActiveSheet.EntireRow.Copy
Sheets("Outside NYCC").Select
Application.ActiveSheet.PasteSpecial
End If
'Range("D1").Select
'cl.Worksheet("Outside NYCC").PasteSpecial xlPasteValues
'cl.PasteSpecial
'Next cl
End Sub
We are trying to test the first sheets to see if D holds Outside NYCC and if it does copy the entire row tot he next sheet.
Any iodeas?
Cheers
Columbo