Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Can anyone help me out here? I want to change the font color of a cell
depending on a conditional test (4<cell contents<90) Here is my code Sub nums() Worksheets("sheet1").Activate Range("b2").Select Range("b2").Activate Dim a As Integer a = Worksheets("sheet1").Range("b2").Value If (5 < a < 8) Then Worksheets("sheet1").Range("b2").Font.Color = RGB(255, 0, 0) Worksheets("sheet1").Range("b2").Font.Color = RGB(0, 0, 255) End If End Sub Thanks! JP |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why excel close all files when I just want to close one files | Excel Discussion (Misc queries) | |||
why do all excel worksheets/workbooks close when I close one? | Excel Discussion (Misc queries) | |||
close button does not close | Excel Discussion (Misc queries) | |||
Excel shoud not close all active books when clicking close button | Excel Discussion (Misc queries) | |||
excel - Windows close button (x) should only close active workboo. | Setting up and Configuration of Excel |