View Single Post
 
Old 05-01-2017, 06:43 PM
ilcaa72 ilcaa72 is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jan 2014
Posts: 27
ilcaa72 is on a distinguished road
Default

Thanks Paul, I Initialize this Selection event with a macro button, and based on what I select the code provides me various options to execute on certain sentences. The issue isnt about not having it run in other docs, because I can control when it is turned on. The issue is once it is turn on
Code:
Private Sub mWordApp_WindowSelectionChange(ByVal Sel As Selection)
I would like to turn it off so when i select it doesnt execute the code anymore while i am still in the document.

Right now i have to go into VBE and press the stop button on the debugger. I would like to add another button in my toolbar which I was hoping would "unload" or "terminate" the selection Event.

Am i stuck with going into VBE to turn this Event WindowSelectionChange manually off everytime i dont want it effecting my selection?

thanks again
Reply With Quote