+ Reply to Thread
Results 1 to 3 of 3

Copy a worksheet and rename with todays date

  1. #1
    Forum Contributor
    Join Date
    09-09-2008
    Location
    Middlesbrough, England
    MS-Off Ver
    2007
    Posts
    174

    Copy a worksheet and rename with todays date

    [SOLVED]

    Hi All,

    Aim
    To create a macro / VB code for my excel workbook which will copy the "template worksheet" and rename the copy as todays date. I would like the date to be in DDMM format.

    I have been able to find a VB which will allow me to create a new sheet and re-name it as DDMM but unsure how to adapt it.

    Current Code:
    Please Login or Register  to view this content.
    Last edited by batchy; 10-04-2011 at 06:32 AM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy a worksheet and rename with todays date

    Hello batchy,

    Change "Template" in the code to the name of your worksheet.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    09-09-2008
    Location
    Middlesbrough, England
    MS-Off Ver
    2007
    Posts
    174

    Re: Copy a worksheet and rename with todays date

    Thanks Leith.

    I have amended both codes which prevents additonal sheets being created. Eg it will only create one sheet for the day.

    I have posted the below incase anyone is intrested.


    Please Login or Register  to view this content.
    Last edited by Leith Ross; 10-04-2011 at 11:56 AM. Reason: Added Code Tags

+ 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