Computing.Net > Forums > Office Software > colors in excel vba

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

colors in excel vba

Reply to Message Icon

Name: mherber2
Date: October 3, 2007 at 18:00:01 Pacific
OS: xp pro
CPU/Ram: unknown
Product: unknown
Comment:

ok... once again i need some help...darn vba got me again...this time what i am looking for is i track certian stats at work such as how long each employee spends on each call and they have a certian goal to get the customer off the phone, well what im looking to do is in excel, when i type in their're stats if its over a certian number i want to the font in that cell to turn red...if anyone knows of a way that i can do this please help



Sponsored Link
Ads by Google

Response Number 1
Name: Bryco
Date: October 4, 2007 at 03:29:53 Pacific
Reply:

Select your cell or column and then
Go to Format, Conditional Formatting.

Set your condition to "Greater than or equal to",click on the Format button and select a color from the 'Color' drop down box for that condition.

Bryan


0

Response Number 2
Name: DerbyDad03
Date: October 4, 2007 at 06:40:39 Pacific
Reply:

Bryco's answer sounds like the perfect solution but I'm just curious about something.

You used "vba" in your subject and "darned vba" in your post. Are you looking to do this with VBA or does Conditional Formatting fit the bill?


0

Response Number 3
Name: mherber2
Date: October 7, 2007 at 12:17:47 Pacific
Reply:

ok that worked but i got another problem now lol. not im working on a bullitin board for our employees using excel, what a want to do is make it so that if there is a certian word i a cell it will clear the cell, basicly a censor to ensure that there is no profane language... any ideas?


0

Response Number 4
Name: DerbyDad03
Date: October 8, 2007 at 07:08:32 Pacific
Reply:

My first thought relates to how many profane words there are and how could you possibly check for every one, including variations (e.g. d*mn, sh!t, etc.). Not sure that that can easily be done.

Actually, my first thought was "Why would anyone use Excel for a bulletin board?" but that's a whole 'nother discussion.

My second (third?) thought was "Hmm, this question has nothing to do with "colors in excel vba".

Anyway, if you right-click on a sheet tab, chose View Code and paste this in, it should prevent any entry that contains dog, cat or bird, including Dog, CAT, or My BiRd iS Loud, etc.

Private Sub Worksheet_Change(ByVal Target As Range)
If _
UCase(Target) Like UCase(("*dog*")) Or _
UCase(Target) Like UCase(("*cat*")) Or _
UCase(Target) Like UCase(("*bird*")) _
Then Target = ""
End Sub



0

Response Number 5
Name: mherber2
Date: October 9, 2007 at 06:09:56 Pacific
Reply:

thank you every one for you help


0

Related Posts

See More



Response Number 6
Name: mherber2
Date: October 9, 2007 at 06:22:45 Pacific
Reply:

ok just one more thing, same project, when it is saved using ctrl+s i want it co close excel


0

Response Number 7
Name: mherber2
Date: October 9, 2007 at 06:40:46 Pacific
Reply:

Also when this excel workbook is open i don't want and toolbars open, including the formula bar. how can i do this along with the ctrl+s thing


0

Response Number 8
Name: mherber2
Date: October 9, 2007 at 14:48:26 Pacific
Reply:

ok i did get the ctrl+s now i only need help with the forula bar...please assist


0

Response Number 9
Name: DerbyDad03
Date: October 9, 2007 at 15:28:36 Pacific
Reply:

Please re-ask your toolbar question under a relevant subject line.

Thousands of toolbar experts want to help you but don't even know that you asked the question because they aren't following the "colors in excel vba" thread.



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: colors in excel vba

Can't change cell color in Excel www.computing.net/answers/office/cant-change-cell-color-in-excel/4723.html

Excel VBA code www.computing.net/answers/office/excel-vba-code/4587.html

no problem just a question in excel www.computing.net/answers/office/no-problem-just-a-question-in-excel/7585.html