Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello
I have been using the code below in my worksheets to change the colour of updated/edited data. Now it doesn't seem to be working Any ideas why? Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) End Sub Private Sub Worksheet_Change(ByVal Target As Range) Target.Interior.ColorIndex = 8 End Sub Martin ©¿©¬ |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In VBE, Immediate window (Ctrl-G), type:
?application.enebleevents If answer is false, type: application.enebleevents=true HTH -- AP <Martin ©¿©¬ @REMOVETHIS.plus.com a écrit dans le message de news: ... Hello I have been using the code below in my worksheets to change the colour of updated/edited data. Now it doesn't seem to be working Any ideas why? Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) End Sub Private Sub Worksheet_Change(ByVal Target As Range) Target.Interior.ColorIndex = 8 End Sub Martin ©¿©¬ |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Maybe events are turned off. Go to the immediate window in the VBIDE and
type Application.EnableEvents = True -- HTH Bob Phillips (remove xxx from email address if mailing direct) <Martin ©¿©¬ @REMOVETHIS.plus.com wrote in message ... Hello I have been using the code below in my worksheets to change the colour of updated/edited data. Now it doesn't seem to be working Any ideas why? Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) End Sub Private Sub Worksheet_Change(ByVal Target As Range) Target.Interior.ColorIndex = 8 End Sub Martin ©¿©¬ |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks for your replies Ardus & Bob
I've found my problem Enable macros was turned off, when I turned them back on my colour changes began working again - happy days!! Regards Martin ©¿©¬ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't change source data path for Pivot Chart | Charts and Charting in Excel | |||
ranking query | Excel Discussion (Misc queries) | |||
Inserting a new line when external data changes | Excel Discussion (Misc queries) | |||
Help PLEASE! Not sure what answer is: Match? Index? Other? | Excel Worksheet Functions | |||
change data source for many queries at once? | Excel Worksheet Functions |