LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Apply same template to other sheet


Hi
Following is a code piece:
Dim xlApp As New Excel.Application

Dim xlWB As Excel.Workbook
Set xlWB = xlApp.Workbooks.Add("C:\...\Applicatio
Data\Microsoft\Templates\UBSTplt1.xlt")

Dim xls As Excel.Worksheet
Set xls = xlWB.Worksheets.Add()
xls.Name = "New Sheet"

xlWB.SaveAs ("c:\Test.xls")

My XLT has some predefined header text and colored cells. I want t
apply the same template to the new sheet I am adding to the Workbook a
above.
Can somebody please suggest how?
Thank

--
shampaber
-----------------------------------------------------------------------
shampabera's Profile: http://www.excelforum.com/member.php...fo&userid=2633
View this thread: http://www.excelforum.com/showthread.php?threadid=39608

 
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
excel template seem not to apply to new sheets George Excel Discussion (Misc queries) 1 May 9th 08 05:06 PM
How do I apply a template to one worksheet in existing workbook? Gwen Excel Discussion (Misc queries) 0 June 19th 07 02:55 PM
is it possible to apply template to a existing worksheet Andy Excel Worksheet Functions 2 May 12th 06 09:31 PM
apply a template to existing worksheet ambrish Excel Discussion (Misc queries) 1 October 19th 05 02:13 PM
Can you apply a template to an existing Workbook? Bruce E. Stemplewski Excel Programming 1 December 26th 04 01:28 AM


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

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"