LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional formatting not working!

Hi all!,

I have some worksheet code on each sheet to perform a formattin
function in a certain range, i also have conditional formating set u
for that range to colour text, the range is formatted "wingdings" an
formatted custom I;I;I; so that any letter that is introduced is turne
in to a spot the conditional formatting colours the spot.....my proble
is this....when i run the macro it does not formatt the cell a colou
it does not enter the text input in to the input box ( the input bo
requires number first and then a letter, the code works fine on a tes
book but not when introduced to the sheet that has conditiona
formatting) in the cell so leaving the cell blank can yo help?

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim val
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("I3:AG641")) Is Nothing Then
val = InputBox("Enter Skill Level" & Chr(13) & "1= In Training"
Chr(13) & "2= Trained" & Chr(13) & "3= Can Train Others" & Chr(13)
"4= Delete Colour and Entry" & Chr(13) & "After number entry enter an
letter, For option 4 do not enter a letter!", "Skills Breakdown an
Competencies Entry", "")
'Range("A" & ActiveCell.Row).Select
With Target
Select Case Left(val, 1)
Case 1:
.Interior.ColorIndex = 48
.Value = Mid(val, 2, 99)
Case 2:
.Interior.ColorIndex = 41
.Value = Mid(val, 2, 99)
Case 3:
.Interior.ColorIndex = 43
.Value = Mid(val, 2, 99)
Case 4:
.Interior.ColorIndex = xlNone
.Value = Mid(val, 2, 99)
Case Else: MsgBox "Invalid Entry Try Again!"
'Range("A" & ActiveCell.Row).Select
End Select
End With
End If

ws_exit:
Application.EnableEvents = True
End Su

--
Message posted from http://www.ExcelForum.com

 
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
Not working: Conditional Formatting Mel[_4_] Excel Discussion (Misc queries) 6 May 3rd 23 03:42 AM
Conditional Formatting - not working Maze[_2_] Excel Discussion (Misc queries) 0 February 10th 10 06:22 PM
Conditional formatting in VBA not working Marilyn Excel Discussion (Misc queries) 3 January 10th 09 04:58 PM
Conditional Formatting ROW not working Rod Excel Discussion (Misc queries) 8 October 5th 08 09:32 PM
Conditional Formatting is not working... tmerton Excel Worksheet Functions 1 March 17th 06 10:42 PM


All times are GMT +1. The time now is 02:59 PM.

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"