My added attachment, is your example project with my code above added to it.
I noticed that you declared several variables as “Global” in your code… Global was deprecated with the end of vb5. You should use Public instead. I took the liberty of changing all the Globals in your code to Public.
If you have anymore questions concerning this, you should start a new topic, as we are way off the original topic of “id Do Not Disturb doesnt work”
Good Luck