Dealing wiht the Personal.xlsx workbook

Burrgogi

Active Member
Joined
Nov 3, 2005
Messages
495
Office Version
  1. 2010
Platform
  1. 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:
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?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Re: Dealing with the Personal.xlsx workbook

Can you not just hide it?

When it opens: View > Hide

I got annoyed by that so mine is hidden unless I need to amend something.
 
Upvote 0
Re: Dealing with the Personal.xlsx workbook

The workbook should be named PERSONAL.XLSB and it should be hidden. You may find this helpful:

http://www.rondebruin.nl/personal.htm


Thanks Andrew. I actually made a typo error when I posted my question. It's already named as "PERSONAL.XLSB"

I think I had actually tried to 'hide' the workbook about a couple of months ago and I ran into a strangeness that i couldn't solve. When I made my personal workbook hidden, I couldn't see any of my macros. But today it seems to be working as designed.

Problem solved..... thanks guys.
 
Upvote 0
Darn! So close! :laugh:

Superferret, we haven't heard from Kashif - I wonder if my ahemm...."expertise" was too much for that poor fellow. I should have dumbed it down so he could understand it better eh?
icon10.gif
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top