Hi All</SPAN>
I am new to this forum and would like to ask for some assistance please.</SPAN>
I have a range of cells (B5:F5) where users can change the cells values. These changes affect values in a range of cells (H3:L32). I am trying to capture the old values (numeric and text) in the range H3:L32, prior to any change occurring and paste the data into the cell range N3:R32 as values only.</SPAN>
I have the following code which seems to work well in the copy and paste aspect; however it is copying/pasting the new values (after a change occurs) into N3:R32 instead of the old values.</SPAN>
Option Explicit</SPAN>
Private Sub Worksheet_Change(ByVal Target As Range)</SPAN>
If Target.Cells.Count > 1 Then Exit Sub</SPAN>
If Not Intersect(Target, Range("B5:F5")) Is Nothing Then</SPAN>
Range("H3:L32").Copy</SPAN>
Range("N3:R32").PasteSpecial xlPasteValues</SPAN>
End If</SPAN>
End Sub</SPAN>
I would be very appreciative if someone can please help me what I need to change here to make this work?</SPAN>
Thanks in advance</SPAN>
darls15</SPAN>
I am new to this forum and would like to ask for some assistance please.</SPAN>
I have a range of cells (B5:F5) where users can change the cells values. These changes affect values in a range of cells (H3:L32). I am trying to capture the old values (numeric and text) in the range H3:L32, prior to any change occurring and paste the data into the cell range N3:R32 as values only.</SPAN>
I have the following code which seems to work well in the copy and paste aspect; however it is copying/pasting the new values (after a change occurs) into N3:R32 instead of the old values.</SPAN>
Option Explicit</SPAN>
Private Sub Worksheet_Change(ByVal Target As Range)</SPAN>
If Target.Cells.Count > 1 Then Exit Sub</SPAN>
If Not Intersect(Target, Range("B5:F5")) Is Nothing Then</SPAN>
Range("H3:L32").Copy</SPAN>
Range("N3:R32").PasteSpecial xlPasteValues</SPAN>
End If</SPAN>
End Sub</SPAN>
I would be very appreciative if someone can please help me what I need to change here to make this work?</SPAN>
Thanks in advance</SPAN>
darls15</SPAN>