![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Leicestershire, U K
Posts: 157
|
My objective is to be able to place an indicator 1 cell to the right of any cell that a user changes.
I can use the following but cannot determine what should replace the Target.Value > 100 Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Target.Column = 1 Then ThisRow = Target.Row If Target.Value > 100 Then Range("B" & ThisRow).Interior.ColorIndex = 3 Else Range("B" & ThisRow).Interior.ColorIndex = xlColorIndexNone End If End If End Sub Any suggestions ? Thanks |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
If all you are looking for is a change then do away with the value condition:
Quote:
Tom |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 468
|
Keith, I'm not sure what you are looking for...
A) put an indicator right off any changed cell : you don't have to check the values
B) put an indicator only if the value > 100
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Leicestershire, U K
Posts: 157
|
Thanks it works a treat.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|