+ Reply to Thread
Results 1 to 6 of 6

Add a new tab once daily

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    Orlando
    MS-Off Ver
    2013
    Posts
    3

    Add a new tab once daily

    Hello there. New to the forum and just starting to delve deeper into Excel 2013, but I can't figure out how to do this for the life of me. I'm creating a monthly spreadsheet that will be tracking information daily, but I want to make it easier for everyone. Rather than the users having to add a new sheet each day or have a bulky workbook with 30 or 31 sheets from day one, I need a macro that will automatically create a new sheet each day, named for that day, but only do it once a day. Help!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Add a new tab once daily

    This macro automatically runs when you open the workbook.
    Put this code in the ThisWorkbook code module
    It checks if a worksheet with today's date already exists and if not, it adds a new worksheet and names it.
    Change the worksheet date name format (red) to suit.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 05-24-2013 at 01:23 PM.

  3. #3
    Registered User
    Join Date
    05-24-2013
    Location
    Orlando
    MS-Off Ver
    2013
    Posts
    3

    Re: Add a new tab once daily

    Worked like a charm! Thank you so much!

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Add a new tab once daily

    Hi malevolent muse,

    Try this in the "ThisWorkbook" module:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Press ALT + F11 to open the Visual Basic Editor.

    Open a macro-enabled Workbook or save your Workbook As Macro-Enabled

    Select "ThisWorkbook” from the Insert menu

    Type "Option Explicit" then paste the code under it

    and you're ready to roll
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Registered User
    Join Date
    05-24-2013
    Location
    Orlando
    MS-Off Ver
    2013
    Posts
    3

    Re: Add a new tab once daily

    Hi xladept! Thanks for your code as well. That one will be well suited for another workbook I'm working on. I'm a busy boy. Thanks so much for everyone's help.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Add a new tab once daily

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1