I'm not using BA so i don't know what signals a market being close but you can check for that:
- Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 and Range("Q2").Value <> "Closed" Then Exit Sub
Application.EnableEvents = False
If Range("F36").Value = 2 Then
Range("Q2").Value = -1
Else: Range("Q2").Value = ""
Application.EnableEvents = True
End Sub
This is just an example, don't know the cell and the info on the cell to signal a market is close.