PDA

View Full Version : Show Windows in task bar PROBLEM HELP!



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

fumei
04-15-2010, 11:10 AM
What do you mean "this option is remaing unchecked "

Unchecked where?

TonyJollans
04-16-2010, 02:10 AM
It works for me. There are several possible reasons for settings not to be preserved but it is not clear at what points you are checking the option and seeing it unchecked.