mosa182
04-15-2010, 04:09 AM
HI there
I have a program which on load uses this code:
application.showwindowsintaskbar = false
Which is great and does exactly what I want it to do. :thumb
The problem however :mkay , is that on closing the Word doc or application I want it to return this option to its orgional state. I have used the following sections of code to do this:
Private Sub Document_Close()
Application.ShowWindowsInTaskbar = True
End Sub
Private Sub UserForm_Terminate()
Application.ShowWindowsInTaskbar = True
End Sub
However this option is remaing unchecked when closing the application:(
Is there a way to make sure that when this doc is closed, this code executes?! Also this document is used on multiple computers so it has to be relvant to this document.
Cheers Joe
I have a program which on load uses this code:
application.showwindowsintaskbar = false
Which is great and does exactly what I want it to do. :thumb
The problem however :mkay , is that on closing the Word doc or application I want it to return this option to its orgional state. I have used the following sections of code to do this:
Private Sub Document_Close()
Application.ShowWindowsInTaskbar = True
End Sub
Private Sub UserForm_Terminate()
Application.ShowWindowsInTaskbar = True
End Sub
However this option is remaing unchecked when closing the application:(
Is there a way to make sure that when this doc is closed, this code executes?! Also this document is used on multiple computers so it has to be relvant to this document.
Cheers Joe