Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have assigned a button with a macro for the color yellow.......
Please review the code. Sub allow_highlight() ' ' allow_highlight Macro ' Macro recorded 1/8/2007 by Classroom ' ' ActiveSheet.Protect UserInterfaceOnly:=True, DrawingObjects:=True, Contents:=True, Scenarios:=True With Selection.Interior .ColorIndex = 6 .Pattern = xlSolid .PatternColorIndex = xlAutomatic End With ActiveSheet.Protect UserInterfaceOnly:=True, DrawingObjects:=True, Contents:=True, Scenarios:=True End Sub The probem is I have locked and unlocked cells, I want only to color the locked cells. When I protect the sheet and use the button it askes me for the password. I dont want this to happen, I just want the button to color the cells that are unprotected. Help!!!!!!!!!!!!!!!!!!!!!!!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I assign a symbol to a button (like the $ button) | Excel Discussion (Misc queries) | |||
how to Assign Hyperlink to Button in Spreadsheet | Excel Discussion (Misc queries) | |||
How do I Assign Macro to a button? | Charts and Charting in Excel | |||
Assign auto_open to a button | Excel Discussion (Misc queries) | |||
assign a macro to a control button | Excel Discussion (Misc queries) |