LearnMeExcel
Well-known Member
- Joined
- Aug 11, 2009
- Messages
- 746
- Office Version
- 365
- 2021
- Platform
- Windows
Hi All
i have this code
then problem here
column i has formula changes when B2 changed
i want my code to copy column i before the values changes
becuse this code copy the data after b2 changed
how i can solve it
i have this code
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim LR As Long
If Target.Address = "$B$2" Then
LR = Range("b" & Rows.Count).End(xlUp).Row
Range("i3:i" & LR).Copy
Range("g3:g" & LR).PasteSpecial xlPasteValues
End If
End Sub
column i has formula changes when B2 changed
i want my code to copy column i before the values changes
becuse this code copy the data after b2 changed
how i can solve it