How to Rename a Blank Sheet that a macro Creates

  • Thread starter Thread starter Darin Kramer
  • Start date Start date
D

Darin Kramer

Howdie,

I have a Macro that goes into a Distribution list (sheet within excel),
selects certain people based on a criteria, copys that info, Inserts a
new sheet and pastes that info into the new sheet. I want to be able to
specify the name of the sheet that it creates (instead of just being a
consecutive sheet number) Ideas will be most welcome...

Thanks

D
 
One way:

ThisWorkbook.Worksheets.Add(After:=Sheets(Sheets.Count)).Name = "foo"
 

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