If you’re like me, you use MS Excel quite a bit. I love Excel. I personally think that it is the greatest piece of software ever created. In my position with my company I get a chance to use it quite a bit, and often find myself reusing the same bit of VBA script or the same formula for many different projects. I get really tired of rewriting the same script, recording the same macro, or trying to remember exactly how I built that last formula before I can use it again. If this ever happens to you, you will understand the frustration.
Well, a couple of years ago I stumbled upon a great tip that has saved me considerable time and frustration, and has even made me look like a hero several times. The magic lies in a small, somewhat hidden folder within the Microsoft Office installation folder called “XLStart”.
“What’s so magical about this folder,” you may ask.
Well, that’s what I am about to show you.
First, let’s focus on those often used macros, scripts, and formulas that you have saved in many other Excel workbooks, text files, Post-It Notes, and other divers sources. Round all of the little nuggets up and save them to one work book. Make sure that your macros and scripts do not make references to specifically named sheets in the original source. If they do, I have found that it is best to either change them to the generic “Sheet#” naming that Excel uses by default. You can also have the script prompt you for the desired sheet name if you like.
Second, try to find a way to organize all of the formulas and macros in a way that you will be able to easily find them. I find it very useful to put the name of the formula and/or a small explanation of it just above the cell you are saving the formula in. You should also have some sample data for the formula to use, just so you can remember exactly what it does, just in case you don’t use it for a long time.
Next, save the workbook you have just populated to the “XLStart” folder. If you used the default installation, the folder should be located using the following path:
C:\Program Files\Microsoft Office\OFFICE11\XLSTART
Just remember to name this something beside Book1. I named mine “MacroBook”, just to make things obvious for me.
The last and my favorite part of this is to hide the workbook so that it doesn’t get in your way every time you open Excel. To do this, just go to the menu bar and click “Window” and the “Hide” and select the workbook you saved. Now, close Excel. It will ask if you want to save the changes you made to your workbook. Click “Yes”.
Now, every time you open Excel, this new workbook with your great macros and formulas will be opened in the background and ready for use. To use a macro, simple click on the macro button like you would to run a macro as if you just made it in your current workbook. The macro selection box will pop up and you will see all of the macros listed for all open workbooks. They will show up in the format WorkbookName.xls!Macroname. Simply select it an run it. To use your formulas, simply go to the toolbar, click “Window” and then “Unhide”, select your hidden workbook and it will appear. Then, simply copy and paste the formula you would like to use into the workbook you are working on. When done, simply re-hide the book you had hidden.
This may seem like a long way to go save some simple formulas, but trust me, if you have any complicated formulas or macros that you find yourself re-creating very often, you will quickly come to love this little tip. So, give it a try and let me know how you like it.
Fantastic little tip! Very easy to do and already can see this will save me HOURS!!
Comment by Danny — August 23, 2007 @ 7:38 am
Great suggestion, I’ve been using this for a while now too. Have you transistion to excel 07? I have and am having a few issues. I copied my workbook with macros to the same start folder OFFICE12\XLSTART, although it’s now 12
But now everytime I open an excel file I have to click on the close (top right hand corner) twice to close the window. It’s quite frustrating and I’m sure it’s because of the hidden workbook. Have you struck this or do you have any suggestions? It’s like it won’t close properly cause the hidden workbook is ‘active’ and hence needs a second click… Even though it’s set to automatically save.
Any help appreciated.
Comment by Matt — April 23, 2008 @ 3:21 am
Thanks for replying. I’ve since seen alot about this double closing on the web. I agree I’d rather have my macros too. Check out this thread, it mentions adding the exit button to the optionable adjustable menu bar (what’ever it’s called) which is a good fix for what is otherwise unavoidable, plus I have all my macros on there anyway. Only frustration now is that you can’t move it haha, you can only have it in one of two places >_< One step forward two steps back…
http://www.eggheadcafe.com/software/aspnet/29659438/closing-excel-2007.aspx
Comment by Matt — April 29, 2008 @ 5:14 am
Hi,
I tried a lot and when I Tried to do as blogged above I found XLstar in Office10 folder instaed office 11. I ddint find any other file here even when I saved hide excell sheet.
Please help me ….I need it urgently
Comment by Vivek Kumar — July 1, 2008 @ 4:10 pm
I’m all right. buy nolvadex no prior prescrition http://www.stumbleupon.com/stumbler/med-brother/ buy dbol nolvadex online Many thanks.
Thank you, not so bad. buy nolvadex low cost buy nolvadex on the net
buy generic nolvadex All the best!
Comment by alaodia — November 10, 2009 @ 3:10 am