As I said, this is not very important, but it was just interesting if anyone knew about a shortcut key or something else to get it back.
There is no shortcut, so I know, but you can do it.
Open MS Word and paste this code into the VBA editor. Close all open Excel instances that are visible, and then this code is run. This will make the hidden instance visible. Manually close the instance and repeat the process if there are more instances.
Option Explicit Sub Sample() Dim oXLApp As Object '~~> Get an existing instance of an EXCEL application object On Error Resume Next Set oXLApp = GetObject(, "Excel.Application") On Error GoTo 0 oXLApp.Visible = True Set oXLApp = Nothing End Sub
I'm not intentionally using a loop, since a hidden instance might have a book that you could save?
If you want, you can convert the above code into a VB Script document that you can run right from the desktop.
Unfortunately, I do not have a control to make the necessary changes.
What do you have in mind? Is the VBA password protected? If not, then my suggestion still matches the previous one
This is bad programming. Even if we give the code to close all the hidden instances of Excel that will not help you. Because the next time you run this macro, you will encounter the same problem again. Why not modify the existing code and add Application.Visible = True at the end? Is it Password Protected by VBA? - Siddharth Rout 28 minutes ago
source share