G大,再跟你請教一個問題
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Intersect(Target, [E1:E50000]) Is Nothing Or Not Intersect(Target, [G1:G50000]) Is Nothing Then
Range("H" & Target.Row).Formula = "=RC[-1]+RC[-2]"
End If
Application.EnableEvents = True
End Sub