Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This has been bugging me all day.
If you save a template named book.xlt in your xlStart folder, then any new standard workbooks will inherit the styles and formatting of that template. That's fine. If you save a single sheet template named sheet.xls, then any new worksheet that is added to an existing workbook will inherit the styles and formatting of that template sheet. That's fine too. But for the life of me, I cannot find any way to create a template which will apply if you create a single sheet workbook using the Application.Workbooks.Add(xlWBATWorksheet) method. It doesn't use book.xlt's, it doesn't use sheet.xlts, and I cannot find ANYWHERE that suggests whether it can use a template and if so, what that template should be named. (Nor have I fluked the discovery of that through trial and error.) I couldn't find anything through web searches, and unfortunately Google has so comprehensively cactused the newsgroup search engine that it's impossible to find anything there either. I'm aware that there are ways to work around this for your own application, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. Does anyone have any thoughts? --------------------------------------------------------- Hank Scorpio scorpionet who hates spam is {Between permanent e-mail addresses at this time, which makes the next line of my signature redundant} * Please keep all replies in this Newsgroup. Thanks! * |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Instead, just open a one sheet workbook that contains your formating. You
can open it in Read mode so it doesn't get changed. Then use SAVEAS to change the file to a different name. "Hank Scorpio" wrote: This has been bugging me all day. If you save a template named book.xlt in your xlStart folder, then any new standard workbooks will inherit the styles and formatting of that template. That's fine. If you save a single sheet template named sheet.xls, then any new worksheet that is added to an existing workbook will inherit the styles and formatting of that template sheet. That's fine too. But for the life of me, I cannot find any way to create a template which will apply if you create a single sheet workbook using the Application.Workbooks.Add(xlWBATWorksheet) method. It doesn't use book.xlt's, it doesn't use sheet.xlts, and I cannot find ANYWHERE that suggests whether it can use a template and if so, what that template should be named. (Nor have I fluked the discovery of that through trial and error.) I couldn't find anything through web searches, and unfortunately Google has so comprehensively cactused the newsgroup search engine that it's impossible to find anything there either. I'm aware that there are ways to work around this for your own application, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. Does anyone have any thoughts? --------------------------------------------------------- Hank Scorpio scorpionet who hates spam is {Between permanent e-mail addresses at this time, which makes the next line of my signature redundant} * Please keep all replies in this Newsgroup. Thanks! * |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Workbooks.Add has its own template parm that you can use:
Workbooks.Add template:="c:\your path to your template\mytemplate.xlt" Workbooks.Add template:=Application.StartupPath & "\sheet.xlt" Hank Scorpio wrote: This has been bugging me all day. If you save a template named book.xlt in your xlStart folder, then any new standard workbooks will inherit the styles and formatting of that template. That's fine. If you save a single sheet template named sheet.xls, then any new worksheet that is added to an existing workbook will inherit the styles and formatting of that template sheet. That's fine too. But for the life of me, I cannot find any way to create a template which will apply if you create a single sheet workbook using the Application.Workbooks.Add(xlWBATWorksheet) method. It doesn't use book.xlt's, it doesn't use sheet.xlts, and I cannot find ANYWHERE that suggests whether it can use a template and if so, what that template should be named. (Nor have I fluked the discovery of that through trial and error.) I couldn't find anything through web searches, and unfortunately Google has so comprehensively cactused the newsgroup search engine that it's impossible to find anything there either. I'm aware that there are ways to work around this for your own application, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. Does anyone have any thoughts? --------------------------------------------------------- Hank Scorpio scorpionet who hates spam is {Between permanent e-mail addresses at this time, which makes the next line of my signature redundant} * Please keep all replies in this Newsgroup. Thanks! * -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Mon, 10 Aug 2009 07:49:51 -0500, Dave Peterson
wrote: Workbooks.Add has its own template parm that you can use: Workbooks.Add template:="c:\your path to your template\mytemplate.xlt" Workbooks.Add template:=Application.StartupPath & "\sheet.xlt" Thanks Dave, but as I did mention: ***I'm aware that there are ways to work around this for your own application***, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. I'm afraid that the question therefore still stands. Hank Scorpio wrote: This has been bugging me all day. If you save a template named book.xlt in your xlStart folder, then any new standard workbooks will inherit the styles and formatting of that template. That's fine. If you save a single sheet template named sheet.xls, then any new worksheet that is added to an existing workbook will inherit the styles and formatting of that template sheet. That's fine too. But for the life of me, I cannot find any way to create a template which will apply if you create a single sheet workbook using the Application.Workbooks.Add(xlWBATWorksheet) method. It doesn't use book.xlt's, it doesn't use sheet.xlts, and I cannot find ANYWHERE that suggests whether it can use a template and if so, what that template should be named. (Nor have I fluked the discovery of that through trial and error.) I couldn't find anything through web searches, and unfortunately Google has so comprehensively cactused the newsgroup search engine that it's impossible to find anything there either. I'm aware that there are ways to work around this for your own application, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. Does anyone have any thoughts? --------------------------------------------------------- Hank Scorpio scorpionet who hates spam is {Between permanent e-mail addresses at this time, which makes the next line of my signature redundant} * Please keep all replies in this Newsgroup. Thanks! * |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Mon, 10 Aug 2009 03:29:02 -0700, Joel
wrote: Instead, just open a one sheet workbook that contains your formating. You can open it in Read mode so it doesn't get changed. Then use SAVEAS to change the file to a different name. Thanks, but as I said... ****I'm aware that there are ways to work around this for your own application****, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. "Hank Scorpio" wrote: This has been bugging me all day. If you save a template named book.xlt in your xlStart folder, then any new standard workbooks will inherit the styles and formatting of that template. That's fine. If you save a single sheet template named sheet.xls, then any new worksheet that is added to an existing workbook will inherit the styles and formatting of that template sheet. That's fine too. But for the life of me, I cannot find any way to create a template which will apply if you create a single sheet workbook using the Application.Workbooks.Add(xlWBATWorksheet) method. It doesn't use book.xlt's, it doesn't use sheet.xlts, and I cannot find ANYWHERE that suggests whether it can use a template and if so, what that template should be named. (Nor have I fluked the discovery of that through trial and error.) I couldn't find anything through web searches, and unfortunately Google has so comprehensively cactused the newsgroup search engine that it's impossible to find anything there either. I'm aware that there are ways to work around this for your own application, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. Does anyone have any thoughts? --------------------------------------------------------- Hank Scorpio scorpionet who hates spam is {Between permanent e-mail addresses at this time, which makes the next line of my signature redundant} * Please keep all replies in this Newsgroup. Thanks! * |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'd go back to the developers and tell them what you need.
But you may want to try this from Gord Dibben: http://groups.google.co.uk/group/mic...+author:dibben or http://is.gd/2aTyp Maybe it'll work in code, too. (I didn't try it.) Hank Scorpio wrote: On Mon, 10 Aug 2009 07:49:51 -0500, Dave Peterson wrote: Workbooks.Add has its own template parm that you can use: Workbooks.Add template:="c:\your path to your template\mytemplate.xlt" Workbooks.Add template:=Application.StartupPath & "\sheet.xlt" Thanks Dave, but as I did mention: ***I'm aware that there are ways to work around this for your own application***, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. I'm afraid that the question therefore still stands. Hank Scorpio wrote: This has been bugging me all day. If you save a template named book.xlt in your xlStart folder, then any new standard workbooks will inherit the styles and formatting of that template. That's fine. If you save a single sheet template named sheet.xls, then any new worksheet that is added to an existing workbook will inherit the styles and formatting of that template sheet. That's fine too. But for the life of me, I cannot find any way to create a template which will apply if you create a single sheet workbook using the Application.Workbooks.Add(xlWBATWorksheet) method. It doesn't use book.xlt's, it doesn't use sheet.xlts, and I cannot find ANYWHERE that suggests whether it can use a template and if so, what that template should be named. (Nor have I fluked the discovery of that through trial and error.) I couldn't find anything through web searches, and unfortunately Google has so comprehensively cactused the newsgroup search engine that it's impossible to find anything there either. I'm aware that there are ways to work around this for your own application, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. Does anyone have any thoughts? --------------------------------------------------------- Hank Scorpio scorpionet who hates spam is {Between permanent e-mail addresses at this time, which makes the next line of my signature redundant} * Please keep all replies in this Newsgroup. Thanks! * -- Dave Peterson |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Mon, 10 Aug 2009 16:26:39 -0500, Dave Peterson
wrote: I'd go back to the developers and tell them what you need. It's a commercial application; actually more than one. What I really *need* is for MS not to have holes in its ability to customise the formatting of sheets which are generated by automation. But given that their interest these days seems to lie considerably more in the direction of New! User! Interfaces! and destroying functionality when it becomes all too hard to maintain rather than fixing bugs or useability gaps, I ain't holding my breath. Thanks for taking the time anyway. Nice to see at least a few familiar names (you and Gord) still around from my time in the groups lo those many years ago; it looks like a lot have departed. Hopefully I won't leave it another 3 years before I drop in again, though I may need to lever myself into using xl2007 before then. 8^ But you may want to try this from Gord Dibben: http://groups.google.co.uk/group/mic...+author:dibben or http://is.gd/2aTyp Maybe it'll work in code, too. (I didn't try it.) Hank Scorpio wrote: On Mon, 10 Aug 2009 07:49:51 -0500, Dave Peterson wrote: Workbooks.Add has its own template parm that you can use: Workbooks.Add template:="c:\your path to your template\mytemplate.xlt" Workbooks.Add template:=Application.StartupPath & "\sheet.xlt" Thanks Dave, but as I did mention: ***I'm aware that there are ways to work around this for your own application***, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. I'm afraid that the question therefore still stands. Hank Scorpio wrote: This has been bugging me all day. If you save a template named book.xlt in your xlStart folder, then any new standard workbooks will inherit the styles and formatting of that template. That's fine. If you save a single sheet template named sheet.xls, then any new worksheet that is added to an existing workbook will inherit the styles and formatting of that template sheet. That's fine too. But for the life of me, I cannot find any way to create a template which will apply if you create a single sheet workbook using the Application.Workbooks.Add(xlWBATWorksheet) method. It doesn't use book.xlt's, it doesn't use sheet.xlts, and I cannot find ANYWHERE that suggests whether it can use a template and if so, what that template should be named. (Nor have I fluked the discovery of that through trial and error.) I couldn't find anything through web searches, and unfortunately Google has so comprehensively cactused the newsgroup search engine that it's impossible to find anything there either. I'm aware that there are ways to work around this for your own application, but we use an external application which generates single sheet files (presumably) using the above method and it is ANNOYING to have to merge our standard styles into them. Does anyone have any thoughts? --------------------------------------------------------- Hank Scorpio scorpionet who hates spam is {Between permanent e-mail addresses at this time, which makes the next line of my signature redundant} * Please keep all replies in this Newsgroup. Thanks! * |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is there a way to set up a template for new workbooks? | Excel Discussion (Misc queries) | |||
Template changes to existing workbooks | Excel Worksheet Functions | |||
Can you link many workbooks to one template? And Update? | Excel Discussion (Misc queries) | |||
I want to merge two workbooks but the option is greyed out. Why? | Excel Discussion (Misc queries) | |||
Why does shared workbooks uncheck users Windows in Taskbar option | Excel Discussion (Misc queries) |