Hi all,
I've been trying to develop an event macro[dbl_click event] to be used in all workbooks that the user opens once they toggle a button to on. And it should stop if they select off.[preferred radio buttons] .
After, an extensive search, I found that it can be made possible with the help of class modules.
Kindly guide me as im stuck and not able to move on and also suggest me if I'm on the right path.
The following code comes under class module
How should i use this to enable/disable as per user requirement of the user.
I've been trying to develop an event macro[dbl_click event] to be used in all workbooks that the user opens once they toggle a button to on. And it should stop if they select off.[preferred radio buttons] .
After, an extensive search, I found that it can be made possible with the help of class modules.
Kindly guide me as im stuck and not able to move on and also suggest me if I'm on the right path.
The following code comes under class module
Code:
Private WithEvents App As Application
Private Sub App_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim strRange As String
strRange = Target.Cells.Address & "," & _
Target.Cells.EntireColumn.Address & "," & _
Target.Cells.EntireRow.Address
Range(strRange).Select
End Sub
Private Sub Class_Initialize()
Set App = Application
End Sub
How should i use this to enable/disable as per user requirement of the user.