I am trying to get a number in Microsoft Excel to increase by 1 whenever a Excel document is opened. It increases when I hit the run button but not when the sheet is opened.
Private Sub Workbook_Open()
Dim currentValue As Integer
currentValue = Range("A1").Value
Range("A1").Value = currentValue + 1
End Sub