Burrgogi
Active Member
- Joined
- Nov 3, 2005
- Messages
- 495
- Office Version
- 2010
- Platform
- Windows
Working with Office 2007.
I personally don't like how the Personal.xlsx shows up maximized every time I start up Excel application. So I wrote a very simple VBA event routine. Here it is:
The reason is that sometimes when I'm a hurry, I end up typing "various stuff" on the personal.xlsx worksheet and I think that's a bad habit. So the macro puts the new workbook in front of my face and I can start typing away without having to worry about my personal.xlsx.
Only problem with the code is that the new workbook does not show up in a maximized state. I therefore added:
Workbooks(1).Windows(1).WindowState = xlMaximized
Just before the End Sub.
Now the strange thing is that the Personal.xlsx seems to be keep reasserting itself and it's in front of my face all the time now!
Any suggestions on a solution?
I personally don't like how the Personal.xlsx shows up maximized every time I start up Excel application. So I wrote a very simple VBA event routine. Here it is:
Code:
Private Sub Workbook_Open()
ThisWorkbook.Windows(1).WindowState = xlMinimized
Workbooks.Add
End Sub
The reason is that sometimes when I'm a hurry, I end up typing "various stuff" on the personal.xlsx worksheet and I think that's a bad habit. So the macro puts the new workbook in front of my face and I can start typing away without having to worry about my personal.xlsx.
Only problem with the code is that the new workbook does not show up in a maximized state. I therefore added:
Workbooks(1).Windows(1).WindowState = xlMaximized
Just before the End Sub.
Now the strange thing is that the Personal.xlsx seems to be keep reasserting itself and it's in front of my face all the time now!
Any suggestions on a solution?