S Oberlander
Board Regular
- Joined
- Nov 25, 2020
- Messages
- 147
- Office Version
- 365
- Platform
- Windows
My macro checks for the existence of two sheets using
The first sheet I'm checking for is returning the same result regardless if the sheet exists or not!
I tried triple checking the spelling. I tried running it from that sheet and from a different sheet... its still returning that the sheet is missing even though it actually is there.
see my code below:
If Not Evaluate
The first sheet I'm checking for is returning the same result regardless if the sheet exists or not!
I tried triple checking the spelling. I tried running it from that sheet and from a different sheet... its still returning that the sheet is missing even though it actually is there.
see my code below:
VBA Code:
Sub Check4sheets()
If Not Evaluate("isref(Gateway report!A1)") Then
MsgBox "Gateway report is missing" 'I'm getting this message even when the sheet is there
End If
If Not Evaluate("isref(Pivot!A1)") Then
MsgBox "Pivot is missing"
End If
End Sub