hypnoshrew
New Member
- Joined
- Nov 8, 2008
- Messages
- 2
Hi,
I am using Excel 2007 and hope to create a simple macro that changes the Sheet Name to the date. But I want the date to exclude the year for the sake of space, or in a format similar to "MM-DD". ie. If the macro ran today, the sheet name would change to "11-09".
Been trying a line of code like this:
ActiveSheet.Name = Month(Date) - Day(Date)
But that's calculating a new number and not formatting the way I'd hope.
Thanks.
I am using Excel 2007 and hope to create a simple macro that changes the Sheet Name to the date. But I want the date to exclude the year for the sake of space, or in a format similar to "MM-DD". ie. If the macro ran today, the sheet name would change to "11-09".
Been trying a line of code like this:
ActiveSheet.Name = Month(Date) - Day(Date)
But that's calculating a new number and not formatting the way I'd hope.
Thanks.