HI I am trying to hide the active window in Excel, the code actually runs, but as soon as the last end sub runs the windows pops back again.
Sub Auto_Open()
MsgBox "This ran!"
Add_Workbook_Menu_And_Items
End Sub
Sub my_auto_open()
Dim w As Window
MsgBox "This ran2!"
' For Each w In Workbooks("Star_Plus_Hindi_MKII.xls").Windows
' w.Visible = False
' Next
If ActiveWorkbook.Name = "Star_Plus_Hindi_MKII.xls" Then
With Application
.ActiveWindow.Visible = False 'HIDES THE ACTIVE WINDOW ONLY
End With
Workbooks("Star_Plus_Hindi_MKII.xls").Save
End If
MsgBox "This ran3!"
End Sub
AS you can see I have tried a number of various way to get the window to stay hidden, all are failing.
Help