Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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.


--
TurboBeagle
------------------------------------------------------------------------
TurboBeagle's Profile: http://www.excelforum.com/member.php...o&userid=23415
View this thread: http://www.excelforum.com/showthread...hreadid=384694

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change a specific code to generic in VB macro Sue Excel Discussion (Misc queries) 2 April 23rd 08 06:56 PM
how do i change or make this macro??? pictures and code included dispelthemyth Charts and Charting in Excel 0 March 17th 06 01:02 AM
Macro to change Macro code? Kaisies Excel Programming 2 March 23rd 05 03:34 AM
Can You Change A CommandButton Code Using A Macro? Donna[_7_] Excel Programming 4 February 11th 05 08:38 AM
make macro change (delete) its own code as_sass Excel Programming 4 August 26th 04 07:15 PM


All times are GMT +1. The time now is 02:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"