i have the following vba code to copy values from the column A to the next column,but it copy the formulas,i want only the values to be copied, so that when i clear the cell in A not to be cleared in B.
<code>
</code>
<code></code>
<code>
Code:
</code><code>Private Sub Worksheet_Change(ByVal Target As Range)
Dim A As Range, intr As Range, r As Range
Set A = Range("A:A")
Set intr = Intersect(A, Target)
If intr Is Nothing Then Exit Sub
Application.EnableEvents = False
For Each r In intr
If r.Value <> "" Then
r.Copy r.Offset(0, 1)
End If
Next r
Application.EnableEvents = True
End Sub
<code></code>