Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JAC JAC is offline
external usenet poster
 
Posts: 31
Default Protecting an Excel worksheet from being renamed

Does anyone know how I can protect a worksheet from being renamed by
the user without stopping him/her from amending (or adding) values to
that worksheet?

All I want to do is to stop renaming!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default Protecting an Excel worksheet from being renamed

Don't know if it's the most efficient way, but I have achieved this by:

1) turning off the ribbon (this is in Office '07, there is a similar
capablity with earlier versions);
Private Sub Workbook_Open()
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"

2) disable right-click functionality
Private Sub Workbook_Open()
Application.CommandBars("Ply").Enabled = False

3) lock and protect all sheets

I'm no programmer, but was able to do build a VBA solution by searching
through these forums for similar problems & solutions and adapting them.

HTH

Dave


"JAC" wrote:

Does anyone know how I can protect a worksheet from being renamed by
the user without stopping him/her from amending (or adding) values to
that worksheet?

All I want to do is to stop renaming!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Protecting an Excel worksheet from being renamed

Hi Jac

Protect the workbook


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"JAC" wrote in message ...
Does anyone know how I can protect a worksheet from being renamed by
the user without stopping him/her from amending (or adding) values to
that worksheet?

All I want to do is to stop renaming!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default Protecting an Excel worksheet from being renamed

If your reason for wanting this is that renaming worksheets stops your VBA
code working try using Worksheet.codename in your code rather than
Worksheet.Name.

Charles
__________________________________________________
The Excel Calculation Site
http://www.decisionmodels.com

"JAC" wrote in message
...
Does anyone know how I can protect a worksheet from being renamed by
the user without stopping him/her from amending (or adding) values to
that worksheet?

All I want to do is to stop renaming!



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
Excel 2003 Protecting a worksheet. jay Excel Discussion (Misc queries) 1 April 27th 09 07:39 AM
Hyperlink to renamed Worksheet fails KIM W Excel Discussion (Misc queries) 2 August 7th 08 06:33 PM
In Office 2003 program worksheet can't be renamed due to .xls add. jamjar65 Excel Discussion (Misc queries) 1 April 10th 08 12:10 PM
toolbar macros that dont change when worksheet is renamed marlin40 New Users to Excel 1 November 21st 05 07:25 PM
problem in protecting excel worksheet cuzofjade Excel Programming 0 March 7th 05 08:39 AM


All times are GMT +1. The time now is 08:53 PM.

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

About Us

"It's about Microsoft Excel"