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
|