LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Is there a template option for Workbooks.Add(xlWBATWorksheet)?

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! *
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to set up a template for new workbooks? Richard Excel Discussion (Misc queries) 6 May 26th 06 04:08 PM
Template changes to existing workbooks farmkid21 Excel Worksheet Functions 2 March 23rd 06 06:51 PM
Can you link many workbooks to one template? And Update? Josh M Excel Discussion (Misc queries) 0 October 18th 05 09:38 PM
I want to merge two workbooks but the option is greyed out. Why? MOC Excel Discussion (Misc queries) 1 October 12th 05 01:52 AM
Why does shared workbooks uncheck users Windows in Taskbar option jasonstratton Excel Discussion (Misc queries) 2 October 10th 05 03:11 PM


All times are GMT +1. The time now is 06:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"