Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
xander1987
 
Posts: n/a
Default Changing Colours With Protection


Hi all. Just hit an annoying problem in Excel 2000.

Although the cell is unlocked for editing, I can't change its colour
using the fill tool.

I could really do with this as asking the user to guess which colour
they want out of 56 is a bit daft.

Any ideas/solutions?

Thanks.


--
xander1987
------------------------------------------------------------------------
xander1987's Profile: http://www.excelforum.com/member.php...o&userid=27236
View this thread: http://www.excelforum.com/showthread...hreadid=469121

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

They can still copy a cell that's shaded the way they want and paste|special
formats.

Or maybe you could give them a macro that checks the selected cells, unprotects
the worksheet, lets them change the color, and then reprotects the worksheet.

Option Explicit
Sub testme()

Dim myRng As Range
Dim myCell As Range
Dim AllUnLocked As Boolean
Dim wks As Worksheet

Set wks = ActiveSheet

If wks.ProtectContents _
Or wks.ProtectDrawingObjects _
Or wks.ProtectScenarios Then
'keep going
Else
MsgBox "Sheet is unprotected. Just use format|cells."
Exit Sub
End If

Set myRng = Selection
AllUnLocked = True
For Each myCell In myRng.Cells
If myCell.Locked = True Then
AllUnLocked = False
Exit For
End If
Next myCell

If AllUnLocked = False Then
MsgBox "Please only select unlocked cells"
Exit Sub
End If

wks.Unprotect Password:="hi"
Application.Dialogs(xlDialogPatterns).Show
wks.Protect Password:="hi"

End Sub


If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

xander1987 wrote:

Hi all. Just hit an annoying problem in Excel 2000.

Although the cell is unlocked for editing, I can't change its colour
using the fill tool.

I could really do with this as asking the user to guess which colour
they want out of 56 is a bit daft.

Any ideas/solutions?

Thanks.

--
xander1987
------------------------------------------------------------------------
xander1987's Profile: http://www.excelforum.com/member.php...o&userid=27236
View this thread: http://www.excelforum.com/showthread...hreadid=469121


--

Dave Peterson
  #3   Report Post  
xander1987
 
Posts: n/a
Default


damn that's good.

Thanks =)


--
xander1987
------------------------------------------------------------------------
xander1987's Profile: http://www.excelforum.com/member.php...o&userid=27236
View this thread: http://www.excelforum.com/showthread...hreadid=469121

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

PS. xl2002+ offers more options when you protect a sheet--including an option
to format cells.

(maybe time for an upgrade? <bg)

xander1987 wrote:

damn that's good.

Thanks =)

--
xander1987
------------------------------------------------------------------------
xander1987's Profile: http://www.excelforum.com/member.php...o&userid=27236
View this thread: http://www.excelforum.com/showthread...hreadid=469121


--

Dave Peterson
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
Changing colours in chart witzman Charts and Charting in Excel 2 May 31st 05 06:58 AM
Changing password protection on sheets Tom Hewitt Excel Discussion (Misc queries) 5 February 25th 05 03:33 PM
workbook protection John New Users to Excel 1 January 22nd 05 12:55 PM
Change the default chart colours TonyJD Charts and Charting in Excel 2 January 20th 05 01:06 AM
multiple or changing colours in a data table on an excel chart fo. Kerri Buxton Charts and Charting in Excel 2 December 23rd 04 07:39 PM


All times are GMT +1. The time now is 05:54 AM.

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"