Rediscovering templates for new workbooks and worksheets
Anyway I could just fix this with two clicks, select Worksheet then use the Ribbon Top Align tool and stop whinging. This is a nothing problem.
But then another day comes along and the same problem. A steely resolve came over me today and I knuckled down to fix this once and for all. And I discovered, having such a simple setting as default alignment was quite hard to do.
So first thing I discovered was somewhere over the years I had forgotten to use my own template. Maybe 2010 and the Ribbon and QAT came along and I just forgot to develop one. So OK great, I quickly set up my new template defaulting to one sheet with Top Aligned chosen and surely this was the solution to my long running, annoying problem. And really I can do more than just fix this minor inconvenience – I can develop new styles, new Pivot Table styles and new Table styles to draw from in my template.
But my joy was short lived. Yes the first sheet of a new workbook was my template. But add a new sheet using Insert on the Home Group on the Ribbon or using the plus icon at the bottom left added a new sheet but cell alignment is Bottom Aligned. Now that surprised me.
So some googling and one of the most trusted sites out there Ron de Bruins Excel Automation shed light on this confusing problem.
There are two folders from which Excel draws templates.
- When you first create a template and save as an .xltx or xltm file it is saved here and then this folder is used when you choose File New on the Ribbon to open your template…
C:\Users\John\Documents\Custom Office Templates (obviously replace John with your Username)
- But when you insert a worksheet using:
Ribbon Home \ Insert \ Insert Sheet or the plus sign at bottom left Excel this then pulls a completely different template to that in the Custom Office Templates folder…
No wonder the confusion. But then of course when you think about it there would be different folders, one folder is for Workbooks and the other for Worksheets. You potentially can’t insert a workbook into a workbook right, so it needs a different folder so it makes sense.
But, I can use my Workbook template as a Worksheet template because I have set the default number of sheets to just one. So if I copy your template created in the Custom Office Templates folder to this folder:
and I change how you insert new sheets to:
- Right click in the tabs area at the bottom
- Then find and choose your template that you have copied there.
then finally, I have achieved my goal! When I insert new worksheets choosing this template I get my Alignment and whatever other time savers such as new Table styles or commonly used VBA subs and functions I can now incorporate within this template (in the latter case if I save as .xltm).
OK it wasn’t quite as euphoric as this scene but it solved a long running problem and got me thinking about templates again.