ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Insert several Sheets (https://www.excelbanter.com/excel-discussion-misc-queries/169046-insert-several-sheets.html)

juanpablo

Insert several Sheets
 
I need to create a macro that can insert sheets from 01DEC to 31DEC
Each Sheet should be named with each day.

Thanks

JPG

excelent

Insert several Sheets
 
Sub addSheet()
On Error Resume Next
For t = 31 To 1 Step -1
Sheets.Add.Name = Format(t, "00") & "DEC"
Next
End Sub


"juanpablo" skrev:

I need to create a macro that can insert sheets from 01DEC to 31DEC
Each Sheet should be named with each day.

Thanks

JPG


supoch14

Insert several Sheets
 


"juanpablo" wrote:

I need to create a macro that can insert sheets from 01DEC to 31DEC
Each Sheet should be named with each day.

Thanks

JPG


supoch14

Insert several Sheets
 


"excelent" wrote:

Sub addSheet()
On Error Resume Next
For t = 31 To 1 Step -1
Sheets.Add.Name = Format(t, "00") & "DEC"
Next
End Sub


"juanpablo" skrev:

I need to create a macro that can insert sheets from 01DEC to 31DEC
Each Sheet should be named with each day.

Thanks

JPG


Roger Govier[_3_]

Insert several Sheets
 
Hi

Take a look at the sample file I put on ExcelUserGroup.org
http://excelusergroup.org/media/p/236.aspx

If you want the Month name as well as the day on each sheet it will be easy
to amend.

--
Regards
Roger Govier

"supoch14" wrote in message
...


"juanpablo" wrote:

I need to create a macro that can insert sheets from 01DEC to 31DEC
Each Sheet should be named with each day.

Thanks

JPG




All times are GMT +1. The time now is 08:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com