Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel template seem not to apply to new sheets | Excel Discussion (Misc queries) | |||
How do I apply a template to one worksheet in existing workbook? | Excel Discussion (Misc queries) | |||
is it possible to apply template to a existing worksheet | Excel Worksheet Functions | |||
apply a template to existing worksheet | Excel Discussion (Misc queries) | |||
Can you apply a template to an existing Workbook? | Excel Programming |