Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding a new sheet based on a template
I need to add a new worksheet using the VBA ADD method. How can I specify
the worksheet template I want to base the worksheet on? Thanks, and sorry for my english |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding a new sheet based on a template
Use this
Sheets.Add Type:=Application.TemplatesPath & "\xxxxx.xlt" -- Regards Ron de Bruin http://www.rondebruin.nl "JVZ" wrote in message ... I need to add a new worksheet using the VBA ADD method. How can I specify the worksheet template I want to base the worksheet on? Thanks, and sorry for my english |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding a new sheet based on a template
I am not sure you can do it with ADD, but
set wkbk = workbooks.open( filename:= _ "C:\MyTemplates\Workbook1.xls") wkbk.Worksheets(1).copy After:=thisworkbook.Worksheets( _ thisworkbook.Worksheets.count) wkbk.close Savechanges:=False -- Regards, Tom Ogilvy "JVZ" wrote in message ... I need to add a new worksheet using the VBA ADD method. How can I specify the worksheet template I want to base the worksheet on? Thanks, and sorry for my english |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Adding a new template spread sheet on the first day of a new month | Excel Discussion (Misc queries) | |||
adding sheets based upon a template sheet | Excel Worksheet Functions | |||
adding a sheet to database using the template Wizard | Excel Discussion (Misc queries) | |||
Adding a new Excel template | Excel Discussion (Misc queries) | |||
balance sheet template in excel adding lines | Excel Discussion (Misc queries) |