+ Reply to Thread
Results 1 to 2 of 2

Macro that will rename all worksheets to dates

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Macro that will rename all worksheets to dates

    I have a macro that duplicates a worksheet however many times you want, but I want to be able to rename those sheets. I would like to name them the dates of the month. I do not know if there is a way to do that, and to do it with weekdays only.

    I have the following macro that I've cobbled together from a couple different locations, maybe someone can iron it out for me. I was just going to have the macro pull names from a list, and have a list of the dates on a hidden page, but excel saves the dates in a format that won't transfer to worksheet name.

    Please Login or Register  to view this content.

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

    Re: Macro that will rename all worksheets to dates

    If the values in the array are serial dates, this will format the date-sheet-name to whatever format you like.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to copy sheet and rename tab to dates
    By Ozman89 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-09-2016, 12:44 PM
  2. Batch rename worksheets with dates
    By FieldHaven in forum Excel General
    Replies: 1
    Last Post: 02-04-2016, 03:32 AM
  3. Help need a Macro To Rename workSheets
    By daillest319 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2012, 11:41 AM
  4. create macro to rename worksheets in other folders
    By alanda in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-06-2009, 12:53 PM
  5. Macro to add and rename worksheets?
    By juanzo007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2007, 01:44 AM
  6. Macro to rename worksheets
    By tanktata in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2006, 06:43 PM
  7. [SOLVED] how do i create a macro to rename worksheets in excel?
    By Waki in forum Excel General
    Replies: 5
    Last Post: 03-24-2005, 03:06 PM

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