After adding this event whenever i run my macros an error message popup.
That is probably because your macros make use of selecting cells or ranges before doing something with them. That is a coding technique you should avoid or, better still, eliminate completely from your coding repertoire. For example, if you find yourself coding something like this...
Range(..).Select
Selection.SomeProperty = ...
you can replace it with something like this...
Range(..).SomeProperty = ...
This makes sense if you think about it. What is Selection? It is the range you selected... they are the same thing. So, if you can call a property or method of the Selection, then you can call that same property or method from the original object used to create the Selection, namely, the original range that was selected. If you do it that way, no selection event procedure code will interfere with your macro code.
That is why i asked you for activate and deactivate options. If these options available i will activate at the end of my process. I want to select from c to y column if i click any cell in a row. Hope you can understand. Thanks again.
Since I don't expect you to go back and rewrite all of your macros to do what I have posted above, here is new event procedures to replace the one I gave you earlier that will enable/disable the event procedure as needed. Note that I also restrict the selection to Columns C through Y. Replace the code I gave you earlier with this one...
Code:
Dim FullRowSelection As Boolean
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
FullRowSelection = Not FullRowSelection
Cancel = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If FullRowSelection Then Intersect(Target.EntireRow, Columns("C:Y")).Select
End Sub
Note that the isolated Dim statement must always appear at the top of the module above any other code that is in that module. To use this code, simply double-click any cell on the worksheet whose code module you install it in... doing that will toggle the selection to the opposite state it is currently in.