Name Tab With Date

  • Thread starter Thread starter Blue
  • Start date Start date
B

Blue

I have code to add a new sheet to a workbook but I want to name the tab
with today's date as the new sheet is created in the format DD-MMM

Thanks Blue
 
Try this:

activeworkbook.sheets.add
activesheet.name = format(Now, "dd-mmm")
 

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