PC Review


Reply
Thread Tools Rate Thread

Change the background color of cells once it being edited

 
 
shawn lee
Guest
Posts: n/a
 
      15th Sep 2008


Hi all, wondering if you all have any solutions for changing the
background color of cells once its being edited .

For example, I have a monthly report in excel for the month of August.
Then when it comes to September, I will need to do some changes to it.
The macro will run and color the cell background to all those cells
that are edited (different from August).

Then in October, the same thing happens again. Any bright ideas?

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Shasur
Guest
Posts: n/a
 
      15th Sep 2008
Hi

You can try like the following

Private Sub Worksheet_Change(ByVal Target As Range)
Target.Interior.ColorIndex = 35
End Sub

Cheers
Shasur

--
http://vbadud.blogspot.com


"shawn lee" wrote:

>
>
> Hi all, wondering if you all have any solutions for changing the
> background color of cells once its being edited .
>
> For example, I have a monthly report in excel for the month of August.
> Then when it comes to September, I will need to do some changes to it.
> The macro will run and color the cell background to all those cells
> that are edited (different from August).
>
> Then in October, the same thing happens again. Any bright ideas?
>
> *** Sent via Developersdex http://www.developersdex.com ***
>

 
Reply With Quote
 
Shawn lee
Guest
Posts: n/a
 
      16th Sep 2008


Hi,

It works, but what I want is when some changes is made then it change
the cell background color. For this code, if for example the original
value in the cell is 1 then if you type 1 into the cell again, it
changes color.

Do you have something where by if you key 1 in it, it wont change color
but when you key something else maybe 2 or 100 then it changes color.

Anyway its already a big step forward. Thanks dude

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change background color in cells =?Utf-8?B?Sm9l?= Microsoft Excel Worksheet Functions 4 6th Nov 2007 11:20 PM
I want to change the background color of cells, if value is a square root. George C. Microsoft Excel Programming 1 9th Dec 2006 06:29 PM
How do I change a merged Cells background color rich Microsoft Excel Programming 0 25th Oct 2006 03:33 PM
Change font and background color of several cells based on result of a formula Zenaida Microsoft Excel Misc 2 27th Apr 2006 06:46 PM
Need to loop thru cells and change background color Ian Wolstenholme Microsoft Excel Discussion 6 8th Feb 2005 11:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:11 AM.