Hello,
I am dutch so forgive me if my Englisch is not 100%
This is an anoying problem I have for a time now, but can't figure out what causes it because it happens with every userform I use!
In the calling Module:
Application.ScreenUpdating = True
frmInstellingen.Show
ThisWorkbook.Activate 'added this to get back the focus, but for a second the previously used app is shown (i.e. Windows Explorer) en then Excel gets back the focus
Next the module for closing the userform by clicking a button
Private Sub KnopCancel_Click()
strHuidigeModule = "frmInstellingen" 'some variable for later use
strhuidigeSub = "KnopCancel_Click" 'some variable for later use
ThisWorkbook.Sheets("variabelen").Range("InstellingenKeuze") = "annuleer" 'some variable for later use
Unload me
End Sub
I am dutch so forgive me if my Englisch is not 100%
This is an anoying problem I have for a time now, but can't figure out what causes it because it happens with every userform I use!
In the calling Module:
Application.ScreenUpdating = True
frmInstellingen.Show
ThisWorkbook.Activate 'added this to get back the focus, but for a second the previously used app is shown (i.e. Windows Explorer) en then Excel gets back the focus
Next the module for closing the userform by clicking a button
Private Sub KnopCancel_Click()
strHuidigeModule = "frmInstellingen" 'some variable for later use
strhuidigeSub = "KnopCancel_Click" 'some variable for later use
ThisWorkbook.Sheets("variabelen").Range("InstellingenKeuze") = "annuleer" 'some variable for later use
Unload me
End Sub