I'm using the following code to open the recoomended excel sheet from the same workbok in a new window. But when I open the sheet and open another workbook the opened workbook shows in minimized window on top of the opened workbook which I dont want to happen.
How could I modify the code so that it does not open the new work book in minimized window other than Cash V1.7.xlsm
I hope I've made my question clear.
Any help on this would be kindly appreciated.
Thanks in advance
Code: Select all
Sub OpenCustomerMasterList()
Application.ScreenUpdating = False
ActiveWindow.NewWindow
Windows.Arrange ArrangeStyle:=xlHorizontal
ActiveWindow.DisplayHorizontalScrollBar = False
ActiveWindow.DisplayWorkbookTabs = False
Application.DisplayFormulaBar = False
Application.DisplayStatusBar = False
Windows("Cash V1.7.xlsm:2").Activate
Sheets("CustomerMasterList").Select
ActiveWindow.DisplayGridlines = False
ActiveWindow.DisplayHeadings = False
Rows("11:11").Select
ActiveWindow.FreezePanes = True
Windows("Cash V1.7.xlsm:1").Activate
Sheets("NewMemo").Select
ActiveWindow.DisplayHeadings = False
Application.ScreenUpdating = True
End Sub