How can I rename sheets with a wide date range without having to manually type in each date?
Thanks
How can I rename sheets with a wide date range without having to manually type in each date?
Thanks
??????????????????
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
I need to create a sheet for each day from 7/8/2011 to 11/30/2011, how can I do this without having to do it manually for each day?
you need someone to write some code for you
Here you go:
![]()
Sub test() Dim lngCount As Long For lngCount = DateSerial(2011, 7, 8) To DateSerial(2011, 11, 30) Worksheets.Add after:=Sheets(Sheets.Count) Sheets(Sheets.Count).Name = Format(lngCount, "mm-dd-yyyy") Next lngCount End Sub
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks