Hi
I have VBA command:
Problem is that in Range("s3:s12") I have also empty cell but I don't want them to be copied into column "t".
How to update this command so that it would copy into column "t" only those cells from column "s" which have value (are higher then 0)?
I have VBA command:
Code:
Private Sub CommandButton1_Click()
Dim LR As Long
Range("s3:s12").Copy
LR = Range("t" & Rows.Count).End(xlUp).Row + 1
With Range("t" & LR)
.PasteSpecial Paste:=xlPasteValues
End With
Application.CutCopyMode = False
End Sub
Problem is that in Range("s3:s12") I have also empty cell but I don't want them to be copied into column "t".
How to update this command so that it would copy into column "t" only those cells from column "s" which have value (are higher then 0)?