Let's say Qty is in L2 and down, Unit Price in M2 and down, and Extended Price in N2 and down.
Right-click the sheet tab and select View Code from the context menu.
Delete the code that you have, and paste the following code into the worksheet module:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Long
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Range("M2:M" & Rows.Count), Target) Is Nothing Then
Application.ScreenUpdating = False
Application.EnableEvents = False
r = Target.Row
Range("N" & r).Formula = "=L" & r & "*M" & r
Application.EnableEvents = True
Application.ScreenUpdating = True
End If
If Not Intersect(Range("N2:N" & Rows.Count), Target) Is Nothing Then
Application.ScreenUpdating = False
Application.EnableEvents = False
r = Target.Row
Range("M" & r).Formula = "=N" & r & "/L" & r
Application.EnableEvents = True
Application.ScreenUpdating = True
End If
End Sub