ninjalearner
New Member
Dear All, I wrote this code to copy contents of a range selection and paste it on another worksheet. The thing is that i want contents of only those rows withing the range that have values in their column C copied but my code copies everything. I am trying to resolve the problem of copying all.
Set DestinationSheet = Sheets("Sheet2").Range("A5:C12")
For Each Cell In ActiveWorkbook.Worksheets("Sheet1").Range("C4:C45")
If Cell.Value >= 1 Then
Set CopyRng = Sheets("Sheet1").Range("A4:C45")
CopyRng.Copy
With DestinationSheet.Cells
.PasteSpecial xlPasteValues
.PasteSpecial xlPasteFormats
Application.CutCopyMode = False
Any Ideas Will Be Appreciated
Set DestinationSheet = Sheets("Sheet2").Range("A5:C12")
For Each Cell In ActiveWorkbook.Worksheets("Sheet1").Range("C4:C45")
If Cell.Value >= 1 Then
Set CopyRng = Sheets("Sheet1").Range("A4:C45")
CopyRng.Copy
With DestinationSheet.Cells
.PasteSpecial xlPasteValues
.PasteSpecial xlPasteFormats
Application.CutCopyMode = False
Any Ideas Will Be Appreciated