Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello
I have a spreadsheet of 18 sheets each with a different name. I want to pull those sheetnames into one more sheet in column A. From there I have a formula to summarize data from those sheets, but it's a bear to have to type each sheetname first. Sheetnames North South East West etc.. Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Right click your sheet tab, view code and paste this in and run it. You will get a liest of sheet names in column a starting in a2 Sub sonic() For x = 1 To Worksheets.Count Cells(x + 1, 1) = Sheets(x).Name Next End Sub Mike "JHL" wrote: Hello I have a spreadsheet of 18 sheets each with a different name. I want to pull those sheetnames into one more sheet in column A. From there I have a formula to summarize data from those sheets, but it's a bear to have to type each sheetname first. Sheetnames North South East West etc.. Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Mike H
PERFECT! Thanks. "Mike H" wrote: Hi, Right click your sheet tab, view code and paste this in and run it. You will get a liest of sheet names in column a starting in a2 Sub sonic() For x = 1 To Worksheets.Count Cells(x + 1, 1) = Sheets(x).Name Next End Sub Mike "JHL" wrote: Hello I have a spreadsheet of 18 sheets each with a different name. I want to pull those sheetnames into one more sheet in column A. From there I have a formula to summarize data from those sheets, but it's a bear to have to type each sheetname first. Sheetnames North South East West etc.. Thanks in advance. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I like this, but is there a way to reverse the order. Instead of the sheets
being ordered 1st thru last sheet, put it last sheet name in A2 and the first sheet in the last cell? -- cao "JHL" wrote: Mike H PERFECT! Thanks. "Mike H" wrote: Hi, Right click your sheet tab, view code and paste this in and run it. You will get a liest of sheet names in column a starting in a2 Sub sonic() For x = 1 To Worksheets.Count Cells(x + 1, 1) = Sheets(x).Name Next End Sub Mike "JHL" wrote: Hello I have a spreadsheet of 18 sheets each with a different name. I want to pull those sheetnames into one more sheet in column A. From there I have a formula to summarize data from those sheets, but it's a bear to have to type each sheetname first. Sheetnames North South East West etc.. Thanks in advance. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
For x = 1 To Worksheets.Count
becomes For x = Worksheets.Count to 1 step -1 srctr wrote: I like this, but is there a way to reverse the order. Instead of the sheets being ordered 1st thru last sheet, put it last sheet name in A2 and the first sheet in the last cell? -- cao "JHL" wrote: Mike H PERFECT! Thanks. "Mike H" wrote: Hi, Right click your sheet tab, view code and paste this in and run it. You will get a liest of sheet names in column a starting in a2 Sub sonic() For x = 1 To Worksheets.Count Cells(x + 1, 1) = Sheets(x).Name Next End Sub Mike "JHL" wrote: Hello I have a spreadsheet of 18 sheets each with a different name. I want to pull those sheetnames into one more sheet in column A. From there I have a formula to summarize data from those sheets, but it's a bear to have to type each sheetname first. Sheetnames North South East West etc.. Thanks in advance. -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It didn't do anything different. It gives me the sheets in the same order as
the other. Say my sheets are March, February, January. Instead of it showing as March in A2, February in A3, January in A4. I would like it to show me January in A2, February in A3, March in A4. This way when I add additional sheets the order on my master will always be in date order -- cao "Dave Peterson" wrote: For x = 1 To Worksheets.Count becomes For x = Worksheets.Count to 1 step -1 srctr wrote: I like this, but is there a way to reverse the order. Instead of the sheets being ordered 1st thru last sheet, put it last sheet name in A2 and the first sheet in the last cell? -- cao "JHL" wrote: Mike H PERFECT! Thanks. "Mike H" wrote: Hi, Right click your sheet tab, view code and paste this in and run it. You will get a liest of sheet names in column a starting in a2 Sub sonic() For x = 1 To Worksheets.Count Cells(x + 1, 1) = Sheets(x).Name Next End Sub Mike "JHL" wrote: Hello I have a spreadsheet of 18 sheets each with a different name. I want to pull those sheetnames into one more sheet in column A. From there I have a formula to summarize data from those sheets, but it's a bear to have to type each sheetname first. Sheetnames North South East West etc.. Thanks in advance. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell names = sheet names | Excel Worksheet Functions | |||
Add Names of First Sheet and Automatically Add to Second Sheet | Excel Discussion (Misc queries) | |||
sheet names | Excel Discussion (Misc queries) | |||
I want to print out the sheet tabs (sheet names) | Excel Worksheet Functions |