Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
matthewwookie
 
Posts: n/a
Default Putting the date as a sheet name


Hi

I've created some macros that create different sheets within a file.

However, i'd like each sheet to display the date along with a pre
defined name.

Is it possible to incorporate this into the macro.....if so, how would
i do it?

Thanks

Matt


--
matthewwookie
------------------------------------------------------------------------
matthewwookie's Profile: http://www.excelforum.com/member.php...o&userid=27503
View this thread: http://www.excelforum.com/showthread...hreadid=470722

  #2   Report Post  
papou
 
Posts: n/a
Default

Hello Matt
You don't say how you have created your sheets, so provided all sheets have
to be renamed in your workbook, you could use something like this:
Dim wsh As Worksheet
For Each wsh In ThisWorkbook.Worksheets
wsh.Name = wsh.Name & "_" & Format(Date, "mmddyy")
Next wsh

HTH
Cordially
Pascal

"matthewwookie"
a écrit dans le message de news:
...

Hi

I've created some macros that create different sheets within a file.

However, i'd like each sheet to display the date along with a pre
defined name.

Is it possible to incorporate this into the macro.....if so, how would
i do it?

Thanks

Matt


--
matthewwookie
------------------------------------------------------------------------
matthewwookie's Profile:
http://www.excelforum.com/member.php...o&userid=27503
View this thread: http://www.excelforum.com/showthread...hreadid=470722



  #3   Report Post  
matthewwookie
 
Posts: n/a
Default


Hi

Thanks for that, the sheets are produced by a macro and its only the
ones that are produced that way need to be renamed. all original sheets
in the book should stay as they are.

Any ideas?

Matt


--
matthewwookie
------------------------------------------------------------------------
matthewwookie's Profile: http://www.excelforum.com/member.php...o&userid=27503
View this thread: http://www.excelforum.com/showthread...hreadid=470722

  #4   Report Post  
papou
 
Posts: n/a
Default

Matt
As I said it depends on how your macro creates the worksheets.
If your macro uses a "For Next" loop then you can use as a start the sample
code I supplied.
But I suggest you post the macro here so that we can help you further.

Cordially
Pascal



"matthewwookie"
a écrit dans le message de news:
...

Hi

Thanks for that, the sheets are produced by a macro and its only the
ones that are produced that way need to be renamed. all original sheets
in the book should stay as they are.

Any ideas?

Matt


--
matthewwookie
------------------------------------------------------------------------
matthewwookie's Profile:
http://www.excelforum.com/member.php...o&userid=27503
View this thread: http://www.excelforum.com/showthread...hreadid=470722



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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Value between 2 dates AG Excel Worksheet Functions 11 August 21st 05 05:32 PM
Using a relative SHEET reference for source data in a chart James Charts and Charting in Excel 6 August 16th 05 05:07 PM
how to use lookup a value by date for criteria in Excel sheet dom Excel Worksheet Functions 5 January 11th 05 04:22 AM


All times are GMT +1. The time now is 11:51 PM.

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

About Us

"It's about Microsoft Excel"