Add a sheet using a template

  • Thread starter Thread starter Newbie
  • Start date Start date
N

Newbie

Hi,

I am adding a sheet using sheets.add.name = sname - no problem

However, I would like the newly created WORKSHEET to be based on a template.
Is this possible? if yes, how?

Thanks
 
NB I don't want the worksheet to be the default for all workbooks only the
workbook that I am adding the sheet to
 
One way, if what you're doing is regularly adding a new
sheet to an existing workbook.

Create your template worksheet, place it right at the end
of the workbook, then hide it or, if you're concerned
about other users finding it and messing about with it use

Sheets("Template").visible = xlveryhidden

Then, to create a new copy:

Sheets("Template").visible = true
Sheets("Template").copy before:= Sheets("Template")
Activesheet.name = "NewSheetName"
Sheets("Template").visible = xlveryhidden

Cheers, Pete
 
Thanks works a treat!
Pete McCosh said:
One way, if what you're doing is regularly adding a new
sheet to an existing workbook.

Create your template worksheet, place it right at the end
of the workbook, then hide it or, if you're concerned
about other users finding it and messing about with it use

Sheets("Template").visible = xlveryhidden

Then, to create a new copy:

Sheets("Template").visible = true
Sheets("Template").copy before:= Sheets("Template")
Activesheet.name = "NewSheetName"
Sheets("Template").visible = xlveryhidden

Cheers, Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top