+ Reply to Thread
Results 1 to 6 of 6

Renaming Worksheet Tabs with Tabs Existing Name + Today's Date

  1. #1
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Smile Renaming Worksheet Tabs with Tabs Existing Name + Today's Date

    Hello, could someone please help modify my VBA code in Excel 2010 to do the following:

    When I copy the worksheet named: Chart1 from Book1.xls to Book2.xls, I need to maintain the worksheet's tab name when it is copied across to Book2.xls.

    Additionally, I need to add today's date to the worksheet's tab name once it is copied across to Book2.xls.

    For Example:

    If I copy worksheet named: Chart1 from Book1.xls to Book2.xls, then once it is copied across to Book2.xls, the worksheet needs to be renamed to: Chart1 - Today's Date. (e.g. Chart1 - 17 Feb 16).

    Please Login or Register  to view this content.
    Any help would be greatly appreciated.

    Kind regards,

    Chris

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Renaming Worksheet Tabs with Tabs Existing Name + Today's Date

    Hi Chris
    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Renaming Worksheet Tabs with Tabs Existing Name + Today's Date

    Try this:
    Please Login or Register  to view this content.

    Or to have it work on whatever the current activesheet happens to be:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Renaming Worksheet Tabs with Tabs Existing Name + Today's Date

    Thank you YasserKhalil - really appreciate your help.

    Cheers,

    Chris

  5. #5
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Renaming Worksheet Tabs with Tabs Existing Name + Today's Date

    Thanks JBeaucaire - really nice work and very much appreciated.

    Cheers,

    Chris

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Renaming Worksheet Tabs with Tabs Existing Name + Today's Date

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. Replace today() with a hardcoded value representing today in all tabs
    By Romanian37 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2013, 07:03 AM
  2. Replies: 6
    Last Post: 02-01-2012, 05:29 PM
  3. Rename worksheet tabs and sheets to match tabs via button
    By timgavin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-31-2011, 06:12 PM
  4. Renaming tabs
    By R77 in forum Excel General
    Replies: 7
    Last Post: 08-19-2008, 04:26 AM
  5. Prevent user from renaming worksheet tabs
    By clayton in forum Excel General
    Replies: 3
    Last Post: 10-18-2006, 01:44 PM
  6. Rename all existing worksheet tabs
    By MikeM in forum Excel General
    Replies: 9
    Last Post: 05-30-2006, 09:50 AM
  7. [SOLVED] renaming worksheet tabs
    By calibronco in forum Excel General
    Replies: 7
    Last Post: 11-25-2005, 09:10 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