Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Enforcing worksheet Naming Conventions - Trapping Copy/Rename work

I have a workbook with a number of standard worksheets, whose names should
not be altered by the user. The user IS allowed to add new "user defined"
worksheets to the workbook. Somewhat different rules will apply for user
defined vs standard worksheets, so I want to be able to distinguish between
them using an enforced worksheet naming convention.

To do this, I'd like to be able to trap all user actions that add new
worksheets to the workbook. I've found the NewSheet event, which is fine. I
still need to find the following:

1) How can I tap into the Copy worksheet action/command, so that when a
worksheet is copied from another workbook, I can impose my naming convention?
2) How can I tap into the worksheet rename action/command so that I can
again enforce my naming convention?

Thanks
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
Macro: Copy a worksheet and rename it to a specified value mitch Excel Discussion (Misc queries) 2 February 16th 09 05:43 PM
Naming conventions for variables Dave Birley Excel Programming 4 May 3rd 07 04:41 PM
Rename a worksheet after copy... Cathy W[_2_] Excel Programming 3 March 8th 06 06:51 PM
Worksheet copy with rename Doug Broad[_4_] Excel Programming 6 March 3rd 06 02:57 PM
File naming conventions gidget Excel Discussion (Misc queries) 7 November 15th 05 02:15 PM


All times are GMT +1. The time now is 01:44 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"