A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Protecting a worksheet



 
 
Thread Tools Display Modes
  #1  
Old June 29th, 2004, 03:29 PM
YS
external usenet poster
 
Posts: n/a
Default Protecting a worksheet

I am trying to see if there is a way to protect a
worksheet, but leave a few cells unprotected (including
their formats). I want to be able to change the color of
the cell and font after the sheet is protected. I tried
unlocking the cells and that allows for editing, but it
still locks the formatting of the cell.
Is there any way to have a worksheet protected, but allow
for cell color and font color changes in certain cells?
  #2  
Old June 30th, 2004, 01:01 AM
Dave Peterson
external usenet poster
 
Posts: n/a
Default Protecting a worksheet

The feature you want was added in xl2002.

You could provide a macro that unprotects the worksheet, colors the cells, and
reprotects the worksheet.

Then the user would run your macro whenever they wanted to format the cell.

YS wrote:

I am trying to see if there is a way to protect a
worksheet, but leave a few cells unprotected (including
their formats). I want to be able to change the color of
the cell and font after the sheet is protected. I tried
unlocking the cells and that allows for editing, but it
still locks the formatting of the cell.
Is there any way to have a worksheet protected, but allow
for cell color and font color changes in certain cells?


--

Dave Peterson

  #3  
Old July 4th, 2004, 12:26 PM
StargateFan
external usenet poster
 
Posts: n/a
Default Protecting a worksheet

On Tue, 29 Jun 2004 19:01:18 -0500, Dave Peterson
wrote:

The feature you want was added in xl2002.

You could provide a macro that unprotects the worksheet, colors the cells, and
reprotects the worksheet.


I am very happy to provide you with unprotect/protect syntax that
might work in your script somehow. This is code that Dave Peterson
kindly gave me this past week that saved all my projects as until I
had this, I had to keep the sheets unprotected, making them vulnerable
to deletions and accidental screw-ups! g



Sub MacroName()
'
'
With ActiveSheet
.Unprotect
(code goes here)
.Protect
End With
End Sub



You just need to name the script by changing the "MacroName", and add
the colour coding, replacing the "(code goes here)" above. g

I'm just a user and don't know vb so hoping that someone can help you
with the colour coding. But hope that you find the above useful in
some way.

Good luck!

Then the user would run your macro whenever they wanted to format the cell.

YS wrote:

I am trying to see if there is a way to protect a
worksheet, but leave a few cells unprotected (including
their formats). I want to be able to change the color of
the cell and font after the sheet is protected. I tried
unlocking the cells and that allows for editing, but it
still locks the formatting of the cell.
Is there any way to have a worksheet protected, but allow
for cell color and font color changes in certain cells?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
auto insert copy of worksheet Bernie Deitrick Worksheet Functions 0 March 4th, 2004 02:18 PM
protecting worksheet with outlines smiller Setting up and Configuration 2 October 9th, 2003 02:46 PM


All times are GMT +1. The time now is 11:57 PM.


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