Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]() '---------------------------------------------------------------- Private Sub Worksheet_SelectionChange(ByVal Target As Range) '---------------------------------------------------------------- Cells.FormatConditions.Delete With Target .FormatConditions.Add Type:=xlExpression, Formula1:="TRUE" With .FormatConditions(1) With .Borders(xlTop) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = 5 End With With .Borders(xlBottom) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = 5 End With End With .FormatConditions(1).Interior.ColorIndex = 20 End With End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select -- HTH RP (remove nothere from the email address if mailing direct) "riccck" wrote in message ... I want to color a cell or cells but don't want the color to show until each individual cell is selected. Can this be done and how? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
linked cell doesn't show formatting | Excel Worksheet Functions | |||
UDF and Calculation tree | Links and Linking in Excel | |||
Problem with IF condition or vector lookup? | Excel Worksheet Functions | |||
Show Blank is cell value=0 but count as a zero in sum. How to format this cell ? | Excel Worksheet Functions | |||
How do I show some of the file properties in a cell in a work she. | Excel Worksheet Functions |