Ottsel
Board Regular
- Joined
- Jun 4, 2022
- Messages
- 167
- Office Version
- 365
- Platform
- Windows
I must be overlooking a very simple thing, but I'm still a novice at VBA, so if someone could point out what I'm overlooking I'd greatly appreciate it.
E1 is hidden on the worksheet named "August" - the name is actually "EE August". I renamed it within the VBA editor, so even if the worksheet name is changed, then it can't mess-up the macro. I have this within the "ThisWorkbook" under Microsoft Excel Objects.
The value at the first opening of the workbook is 1.
E1 is hidden on the worksheet named "August" - the name is actually "EE August". I renamed it within the VBA editor, so even if the worksheet name is changed, then it can't mess-up the macro. I have this within the "ThisWorkbook" under Microsoft Excel Objects.
VBA Code:
Private Sub Workbook_Open()
'...to avoid vb error msg
On Error Resume Next
If Worksheets("August").Range("E1").Value > 0 Then
MsgBox "Welcome! Let's get started"
Else
End If
'...avoid this msg repeating
Range("E1").Value = "0"
End Sub