Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Counting Worksheets

Is there a way to have the workbook count sheets and then have a message pop
up when it reaches a certain number?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Counting Worksheets

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
"jnf40" wrote in message
...
Is there a way to have the workbook count sheets and then have a message
pop
up when it reaches a certain number?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting worksheets in a book Willie Excel Discussion (Misc queries) 9 May 4th 08 08:17 PM
counting data across worksheets franki_85[_2_] Excel Worksheet Functions 4 November 21st 07 04:21 PM
Counting Worksheets, Second Verse Janie Excel Worksheet Functions 0 October 22nd 06 07:46 PM
Counting worksheets with a particular name Freddie Mac Excel Programming 9 June 30th 06 01:37 PM
Help with counting across worksheets Biff Excel Discussion (Misc queries) 4 April 12th 05 04:16 AM


All times are GMT +1. The time now is 12:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"