breakbacktennis
New Member
- Joined
- Aug 30, 2017
- Messages
- 33
Hi, I have some code that I only want to run once. As the sheet it is connected to is refreshing it also keeps refreshing the code thus meaning the code keeps running. Is there anyway just to have the code run once and not keep refreshing?
Code:
Private Sub Worksheet_Calculate()
If Sheet1.Range("U7").Text = "Done" Then Exit Sub
If Range("G1").Value = "In-play" Then
Range("U9").Value = Range("G9").Value
Range("U11").Value = Range("G11").Value
Range("U13").Value = Range("C2").Value
End If
End Sub