S
Sandy
Hi
I have a situation whereby if sheet "LogGraph3" is the only sheet visible
then I do not require the Workbook_BeforeClose to run, how do I incorporate
that into the following.
******Sub Starts******
Sub Workbook_BeforeClose(Cancel As Boolean)
If Sheets("LogGraph3") 'is the only visible sheet' Then
GoTo EarlyEnd
Else
Do closing code
End If
EarlyEnd:
Some Code
End Sub
******Sub Ends*******
Thanks
Sandy
I have a situation whereby if sheet "LogGraph3" is the only sheet visible
then I do not require the Workbook_BeforeClose to run, how do I incorporate
that into the following.
******Sub Starts******
Sub Workbook_BeforeClose(Cancel As Boolean)
If Sheets("LogGraph3") 'is the only visible sheet' Then
GoTo EarlyEnd
Else
Do closing code
End If
EarlyEnd:
Some Code
End Sub
******Sub Ends*******
Thanks
Sandy