Code for copy data using VbA code in Excel
Question:
How can I fix the below code for below snapshots?
I have tried below code
Answers:
How can I fix the below code for below snapshots?
I have tried below code
Dim Rng3 As Range
Dim Rng5 As Range
For Each Rng3 In CurCell_1
For Each Rng5 In CurCell_3
lLFs = VBA.Len(Rng3) - VBA.Len(VBA.Replace(Rng3, vbLf, ""))
If lLFs > 0 Then
Range("B27").Select
Selection.Copy
Sheets("AccountModule").Select
Range("AY2").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End If
Next
Next
but the same is not working.Answers:
|
I suggest you use a different kind of routine like this one:
My sub assumes that your input data is in a range given by src and the results should be written into a range starting at trg.So, when there is data like this
The procedure call
will get you this result:
|
Commentaires
Enregistrer un commentaire