Macro wont work with a cell which is updateing by formular
I have the below Macro I have been using to up show the previous cells data and it has been working well until I updated my sheet so the cell updates by using a formula instead of manually, now the macro dose not work.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cng As String
Application.EnableEvents = False
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Range("A:A"), Target) Is Nothing Then
cng = Target.Value
Application.Undo
Target.Offset(0, 1) = Target.Value
Target = cng
End If
Application.EnableEvents = True
End Sub
Please Help.
1 Attachment(s)
Sample of spread sheet with Macro issue
Thanks for the help so far, but I think I've taken on a larger project than I first thought, I have tried to implement the above code change with no luck. I am hoping you can have a look at the attached sample and point me in the right direction. Attachment 16274
I have the current Macro running but you will see that it dose not work with a formula updating it.