I'm using Excel 2003 on Windows 10.
I'm trying to use:-
"Private Sub Worksheet_Deactivate()"
"Userform1.Hide"
"End Sub"......
....placed in the code area of the worksheet,
to dismiss a Userform from that Worksheet,
when I leave it by selecting another Worksheet's tab.
It doesn't trigger.
If I run the code manually, it works.
There are no "Application.EnableEvents=true or false" lines in the code.
I'm curious to know what can be stopping the code from triggering.
If I write a simple, separate, stand alone programme to do the same thing, it works fine.
So presumably there's so presumably, there's something in my code causing the problem,
but I don't know what to look for.
In the wider world of Excel, there must be some known quirks that can cause this behaviour?
Help please
Bookmarks