+ Reply to Thread
Results 1 to 2 of 2

Macro code to change tab name

  1. #1
    Registered User
    Join Date
    05-16-2005
    Posts
    2

    Macro code to change tab name

    Does anyone know the vba code for changing a tab to the current date? I have the code to create a string that is the current date, and have applied that to other things, such as a new file name. I can't seem to find how to apply that as a tab name.


    Thanks.

  2. #2
    Dave Peterson
    Guest

    Re: Macro code to change tab name

    activesheet.name = format(date,"yyyy_mm_dd")

    is one way.

    Remember that worksheet names can't include the slash character.



    TurboBeagle wrote:
    >
    > Does anyone know the vba code for changing a tab to the current date?
    > I have the code to create a string that is the current date, and have
    > applied that to other things, such as a new file name. I can't seem
    > to find how to apply that as a tab name.
    >
    > Thanks.
    >
    > --
    > TurboBeagle
    > ------------------------------------------------------------------------
    > TurboBeagle's Profile: http://www.excelforum.com/member.php...o&userid=23415
    > View this thread: http://www.excelforum.com/showthread...hreadid=384694


    --

    Dave Peterson

+ 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