OK, so if I do paste special and just get the values, will that work?
OK, so if I do paste special and just get the values, will that work?
Try the below link.. may be of help to you
http://www.excelforum.com/excel-gene...-than-3-a.html
Shijesh Kumar
http://shijesh.wordpress.com/
If you manually enter the value in P then this code works fine
![]()
Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) Dim rng As Range Dim intColour As Integer If Target.Column = 16 And Target.Count = 1 Then Select Case Cells(Target.Row, 16).Value Case 1: intColour = 3 Case 2: intColour = 8 Case 3: intColour = 4 Case 5: intColour = 46 Case Else: 'do nothing End Select End If Set rng = ActiveSheet.Range(Cells(Target.Row, 8), Cells(Target.Row, 13)) rng.Interior.ColorIndex = intColour End Sub
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks