Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Set color of data in unprotected cells to blue


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Set color of data in unprotected cells to blue

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Set color of data in unprotected cells to blue


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Set color of data in unprotected cells to blue

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Set color of data in unprotected cells to blue


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
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
How to replace the background color of all cells from light green to light blue? Claudia d'Amato Excel Discussion (Misc queries) 1 November 14th 08 07:09 PM
how to change a color of cell 2a to blue if 2b contains a value? Jon Excel Worksheet Functions 2 November 4th 05 03:20 PM
Copying data into alternate unprotected cells in another spreadsheet JOSE Excel Programming 2 September 22nd 05 03:15 AM
File name changes to blue color pete Excel Worksheet Functions 4 December 14th 04 03:39 PM
Summing Cells with a BLUE font (or any other color) RAYMOND KELLY Excel Programming 2 September 24th 04 06:59 PM


All times are GMT +1. The time now is 01:58 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"