+ Reply to Thread
Results 1 to 8 of 8

Macros to name sheet with date

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    SG
    MS-Off Ver
    Excel 2007
    Posts
    4

    Macros to name sheet with date

    Hi

    i have 32 sheets/tabs with data. every month, i have to rename each sheet/tab e.g. Jun 1, Jun 2... Jun 30. the following month, they ll be renamed Jul 1, Jul 2 ... Jul 31.

    is there a macro to do this? codes i have seen referenced a cell in each sheet but the data in my sheets don't contain the dates(i.e. Jun 1 ).

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macros to name sheet with date

    Try the below code.....

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    06-10-2013
    Location
    SG
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macros to name sheet with date

    It works! Thank you so much

    Would it be possible to add the day as well? e.g. Sat Jun 1, Sun Jun 2

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macros to name sheet with date

    Glad it helps you and thanks for the feedback

    Replace this line
    Please Login or Register  to view this content.
    With
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-10-2013
    Location
    SG
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macros to name sheet with date

    I made the changes, didn't quite work. The sheets took the day of the first sheet.

    i.e.
    Sat Jun 1, Sat Jun 2, Sat Jun 3, Sat Jun 4 etc.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macros to name sheet with date

    Regret for the inconvenience...

    Try this revised code...

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-10-2013
    Location
    SG
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macros to name sheet with date

    Works!! Thank you!

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macros to name sheet with date

    Glad it helps you and thanks for the feedback

+ 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