G Guest Sep 14, 2007 #1 Is there a way to have the workbook count sheets and then have a message pop up when it reaches a certain number?
Is there a way to have the workbook count sheets and then have a message pop up when it reaches a certain number?
M Mike Fogleman Sep 14, 2007 #2 Something like this put in the ThisWorkbook code module: Private Sub Workbook_NewSheet(ByVal Sh As Object) If Sheets.Count > 3 Then MsgBox "Too many sheets." End Sub Mike F
Something like this put in the ThisWorkbook code module: Private Sub Workbook_NewSheet(ByVal Sh As Object) If Sheets.Count > 3 Then MsgBox "Too many sheets." End Sub Mike F