![]() |
format
Hello all,
I would like to name a worksheet based on "Today()" that is in a text box. I am having trouble because you cannot use "/" ":" etc in a sheet name. All I need is the date and "12-22-04" would work well. Thanks |
format
Tim
Not sure if ive understood right, but to create a new sheet, and name as todays date (with your format below), you could try; Sub addsheet() Dim NewSheet Set NewSheet = Sheets.Add NewSheet.Name = Format(Date, "mm-dd-yy") End Sub Dave "Tim" wrote in message ... Hello all, I would like to name a worksheet based on "Today()" that is in a text box. I am having trouble because you cannot use "/" ":" etc in a sheet name. All I need is the date and "12-22-04" would work well. Thanks |
All times are GMT +1. The time now is 10:55 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com