Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello
I would like to use a macro to name the sheets in a workbook. I want the tabs to be named Jan & year through Dec & year. I know I don't have to ask if it is possible, you people are great thanks in advance for the help. -- Thank You Steve |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sub missive()
s = Array("jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec") For i = 1 To 12 Sheets(i).Name = s(i - 1) & " 2008" Next End Sub mind the text wrapping!! -- Gary''s Student - gsnu200759 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sub namesheets()
With Sheet1 my = Year(Date) mm = 0 End With For i = 1 To 12 Sheets.Add After:=Sheets(Sheets.Count) With ActiveSheet .Name = Format(DateSerial(my, mm + i, 1), "mmm yy") End With Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "steve" wrote in message ... Hello I would like to use a macro to name the sheets in a workbook. I want the tabs to be named Jan & year through Dec & year. I know I don't have to ask if it is possible, you people are great thanks in advance for the help. -- Thank You Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Naming tabs | Excel Worksheet Functions | |||
Naming Worksheet tabs | Excel Discussion (Misc queries) | |||
Naming Tabs | Excel Discussion (Misc queries) | |||
naming tabs | Excel Worksheet Functions | |||
Naming Sheets Tabs | Excel Worksheet Functions |