Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2023
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.27 KB | None | 0 0
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.   If Not Intersect(Range("R1"), Target) Is Nothing Then
  3.     Application.EnableEvents = False
  4.     Range("P1").GoalSeek Goal:=Range("R1"), ChangingCell:=Range("O1")
  5.     Application.EnableEvents = True
  6.   End If
  7. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement