Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2000
With a previous question and your help I'm up and running with the code below. But I need a last bit of help please to find away round a glitch.. Users enter data into the sheet within a range of C5:H33. For ease they sometime copy and paste part of a row into the next row but sometime paste it into the wrong cell. The result is the red/bold format if present in the F5:F33 (from the code below) is transfered to another cell. How can I ensure that all other cells other than the F5:F33 range remains black and normal when data is enterd either directly or copied from a cell with red/bold format? Private Sub workbook_sheetchange(ByVal sh As Object, ByVal Target As Range) On Error Resume Next If Not Intersect(Target, Range("f5:f33")) Is Nothing Then If Target.Value = 0.5 Then Target.Font.ColorIndex = 3: Target.Font.FontStyle = "bold" Else Target.Font.ColorIndex = 1: Target.Font.FontStyle = "normal" End If End If End Sub TIA Derek.. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Intersect Line | Charts and Charting in Excel | |||
Complex Union Intersect | Excel Worksheet Functions | |||
how to find an intersect of two columns | New Users to Excel | |||
Intersect operations | Excel Worksheet Functions | |||
How do I find where a column value and row value intersect? | Excel Worksheet Functions |