ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Highlighting when a cells contents has changed (https://www.excelbanter.com/excel-programming/391588-re-highlighting-when-cells-contents-has-changed.html)

Francois via OfficeKB.com

Highlighting when a cells contents has changed
 
Francois wrote:
I am using the code below ( thanks to Bob Philips) to indicate which cells
have changed since the last update.

Is it possible to modify it so that it will only action on a specific range
ie cells A1:AJ1.

Thanks



Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit
Application.EnableEvents = False

With Target
.Interior.ColorIndex = 38
End With

ws_exit:
Application.EnableEvents = True
End Sub

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200706/1



All times are GMT +1. The time now is 04:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com