PC Review


Reply
Thread Tools Rate Thread

how to create a new workbook based on a template...

 
 
jimc
Guest
Posts: n/a
 
      17th Jun 2007
I would like to create a new workbook based on a template, but not the
xlstart template. In other words I dont want to use a default but be
able to specify the template file when creating the workbook. Is this
possible? Same question with worksheets.

Jim

 
Reply With Quote
 
 
 
 
Vasant Nanavati
Guest
Posts: n/a
 
      17th Jun 2007
Workbooks.Add sTemplateLocation

where sTemplateLocation is the string pointing to the template address.

______________________________________________________________________

"jimc" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I would like to create a new workbook based on a template, but not the
> xlstart template. In other words I dont want to use a default but be
> able to specify the template file when creating the workbook. Is this
> possible? Same question with worksheets.
>
> Jim
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      17th Jun 2007
dim wkbk as workbook
set wkbk = Workbooks.Add(template:="C:\my documents\excel\mybook.xlt")

and

Dim wks as object
set wks = sheets.add(Type:="C:\my documents\excel\mysheet.xlt")





jimc wrote:
>
> I would like to create a new workbook based on a template, but not the
> xlstart template. In other words I dont want to use a default but be
> able to specify the template file when creating the workbook. Is this
> possible? Same question with worksheets.
>
> Jim


--

Dave Peterson
 
Reply With Quote
 
jimc
Guest
Posts: n/a
 
      17th Jun 2007


Thanks you very much

On Jun 16, 9:45 pm, "Vasant Nanavati" <vasantn AT aol DOT com> wrote:
> Workbooks.Add sTemplateLocation
>
> where sTemplateLocation is the string pointing to the template address.
>
> ______________________________________________________________________
>
> "jimc" <jimscala...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
> >I would like to create a new workbook based on a template, but not the
> > xlstart template. In other words I dont want to use a default but be
> > able to specify the template file when creating the workbook. Is this
> > possible? Same question with worksheets.

>
> > Jim



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a new template; not based on another template? =?Utf-8?B?VGFtbHluIFNjaG1laXNzZXI=?= Microsoft Word Document Management 2 2nd Jul 2005 12:08 AM
create a new template based on an other template =?Utf-8?B?YXJvbg==?= Microsoft Frontpage 4 8th Dec 2004 09:03 AM
Create a new sheet in a workbook from a template =?Utf-8?B?Um9nZXJOWg==?= Microsoft Excel Programming 1 16th Jun 2004 03:23 AM
New Workbook based on Template maxhugen Microsoft Excel Misc 4 8th Jun 2004 07:13 AM
Create workbook from a template Axcell Microsoft Excel Misc 1 29th Feb 2004 02:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:12 AM.