I am trying to adjust you code to make it an option that can be turned on/off.
If the user opens the Options form and changes the option from Enabled to Disabled, I am getting the error:
Object variable or With block variable not set.
on this line:
I know what this means, but I'm not too sure how to change this.
This is because, even if the Enabled option is selected, I don't use this line until certain conditions are met:
vb Code:
EnableAutoURLDetection RTB
so the RTB hasn't yet been subclassed.
Is there some way of checking if the subclassing has happened before I fire this line of code?
Such as
Code:
If Not FormSubClass.Unsubclass Then ....