PDA

View Full Version : Naming a Worksheet Today's date



Factor3
02-26-2007, 03:20 PM
I've put together a Macro that does some reformatting of downloaded Stock prices, and I would like the end of the Macro to Rename the downloaded worksheet (Sheet1) Today's date in the format "dd.mm.yy"

I've tried:
Sheet1.Name = "Today()"

as well as
Sheet1.FormulaR1C1 = "=Today()"

But, I'm not having much luck.

Any ideas?

mdmackillop
02-26-2007, 03:25 PM
Sheets("Sheet1").Name = Format(Now, "dd.mm.yy")

or maybe
ActiveSheet.Name = Format(Now, "dd.mm.yy")

Bob Phillips
02-26-2007, 04:47 PM
I would always reverse the date, for sorting purposes



Sheet1.Name = Format(Date,"yyyy mm dd")

Factor3
02-27-2007, 01:25 PM
That worked perfectly, Thanks SO much!!!