L
Larry Fitch
I have created macros to hide and unhide sheets when clicking on a button
example -
Sheets("Premium Labor Utilization").Visible = Not Sheets("Premium Labor
Utilization").Visible
I am also assigning goups of sheets to a summary button
example
Application.ScreenUpdating = False
Sheets("Premium Labor Utilization").Visible = Not Sheets("Premium Labor
Utilization").Visible
Sheets("FMLA Compliance").Visible = Not Sheets("FMLA Compliance").Visible
Sheets("FLSA Compliance").Visible = Not Sheets("FLSA Compliance").Visible
Sheets("Compliance Rpt").Visible = Not Sheets("Compliance Rpt").Visible
Sheets("Tangible Savings Summary").Visible = Not Sheets("Tangible
Savings Summary").Visible
Sheets("Selection Sheet").Select
The problem is that if I have already opened a sheet with an idividual
button - it will close if I click on a summary button and it is one of the
sheets that are part of the summary macro.
Is there any way to add some sort of error checking around this so that if a
sheet is already open it will not be closed ?
example -
Sheets("Premium Labor Utilization").Visible = Not Sheets("Premium Labor
Utilization").Visible
I am also assigning goups of sheets to a summary button
example
Application.ScreenUpdating = False
Sheets("Premium Labor Utilization").Visible = Not Sheets("Premium Labor
Utilization").Visible
Sheets("FMLA Compliance").Visible = Not Sheets("FMLA Compliance").Visible
Sheets("FLSA Compliance").Visible = Not Sheets("FLSA Compliance").Visible
Sheets("Compliance Rpt").Visible = Not Sheets("Compliance Rpt").Visible
Sheets("Tangible Savings Summary").Visible = Not Sheets("Tangible
Savings Summary").Visible
Sheets("Selection Sheet").Select
The problem is that if I have already opened a sheet with an idividual
button - it will close if I click on a summary button and it is one of the
sheets that are part of the summary macro.
Is there any way to add some sort of error checking around this so that if a
sheet is already open it will not be closed ?