Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Need simplest VBA that sets the color of data entered in an unprotecte cell to blue & resets it back to automatic (black) when & if a cell i protected again. The data may or may not be already entered. Therefore, the chang should take place when a cell is either unprotected or protected (no when sheet protection is turned on or off). I prefer not having to put the VBA code in every worksheet but have i for all workbooks & worksheets. Any ideas? Thanks so much for your help. mikebur -- mikebur ----------------------------------------------------------------------- mikeburg's Profile: http://www.excelforum.com/member.php...fo&userid=2458 View this thread: http://www.excelforum.com/showthread.php?threadid=48927 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can you use format|conditional formatting?
If yes... Select A1 then select all the cells (A1 will be the active cell) format|conditional formatting formula is: =CELL("Protect",A1)=0 Choose the format you like for unlocked cells. mikeburg wrote: Need simplest VBA that sets the color of data entered in an unprotected cell to blue & resets it back to automatic (black) when & if a cell is protected again. The data may or may not be already entered. Therefore, the change should take place when a cell is either unprotected or protected (not when sheet protection is turned on or off). I prefer not having to put the VBA code in every worksheet but have it for all workbooks & worksheets. Any ideas? Thanks so much for your help. mikeburg -- mikeburg ------------------------------------------------------------------------ mikeburg's Profile: http://www.excelforum.com/member.php...o&userid=24581 View this thread: http://www.excelforum.com/showthread...hreadid=489272 -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks. Conditional formatting helps. I was hoping for something more automatic. Also, we are constantly changing cells from protect to unprotect & visa versa. I really need something more automatic when that is done. Any other ideas? Thanks so very much. mikeburg -- mikeburg ------------------------------------------------------------------------ mikeburg's Profile: http://www.excelforum.com/member.php...o&userid=24581 View this thread: http://www.excelforum.com/showthread...hreadid=489272 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can't think of anything more automatic than conditional formatting.
mikeburg wrote: Thanks. Conditional formatting helps. I was hoping for something more automatic. Also, we are constantly changing cells from protect to unprotect & visa versa. I really need something more automatic when that is done. Any other ideas? Thanks so very much. mikeburg -- mikeburg ------------------------------------------------------------------------ mikeburg's Profile: http://www.excelforum.com/member.php...o&userid=24581 View this thread: http://www.excelforum.com/showthread...hreadid=489272 -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thank you for your help. mikeburg -- mikeburg ------------------------------------------------------------------------ mikeburg's Profile: http://www.excelforum.com/member.php...o&userid=24581 View this thread: http://www.excelforum.com/showthread...hreadid=489272 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to replace the background color of all cells from light green to light blue? | Excel Discussion (Misc queries) | |||
how to change a color of cell 2a to blue if 2b contains a value? | Excel Worksheet Functions | |||
Copying data into alternate unprotected cells in another spreadsheet | Excel Programming | |||
File name changes to blue color | Excel Worksheet Functions | |||
Summing Cells with a BLUE font (or any other color) | Excel Programming |