ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   worksheet change (https://www.excelbanter.com/excel-programming/354121-worksheet-change.html)

[email protected][_2_]

worksheet change
 
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("d17").Value 0 Then
Application.EnableEvents = False
Range("a5:o17").Select
Application.EnableEvents = True
End If
End Sub
Hi Im using the above code which worked a few times the stopped woking,
the select is just a test to see if worksheet change is working. I put
a break point at private sub, but its not getting fired each time
theres a chnge in the worksheet. Any suggestins.
Regards Robert


[email protected][_2_]

worksheet change
 
Ignore the post, Im an idiot. Id put a break at range selection. The
stopped running the macro, before it enabled the events. What a
plonker.
Regards Robert



All times are GMT +1. The time now is 07:20 PM.

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