Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have several worksheets and I will constantly create more worksheets. on one of me worksheets I want to insert the name of each worksheet in my workbook into a table. I would like for the info to be entered in the chart at b12 and then continue on downwards b13, etc.. on the page that contains the table there is currently no code attached to it. please provide correct coding info to accomplish this task. -- oberon.black ------------------------------------------------------------------------ oberon.black's Profile: http://www.excelforum.com/member.php...o&userid=26732 View this thread: http://www.excelforum.com/showthread...hreadid=466570 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Oberon,
Try: '======================== Public Sub ListSheets() Dim tSH As Worksheet Dim SH As Worksheet Dim Rng As Range Dim i As Long Const ListAddress As String = "B12" Set tSH = ThisWorkbook.Sheets("Sheet1") '<<==== CHANGE Set Rng = tSH.Range(ListAddress) For Each SH In ThisWorkbook.Sheets If Not SH.Name = tSH.Name Then Rng.Offset(i).Value = SH.Name i = i + 1 End If Next SH End Sub '======================== --- Regards, Norman "oberon.black" wrote in message news:oberon.black.1v6hud_1126415119.3323@excelforu m-nospam.com... I have several worksheets and I will constantly create more worksheets. on one of me worksheets I want to insert the name of each worksheet in my workbook into a table. I would like for the info to be entered in the chart at b12 and then continue on downwards b13, etc.. on the page that contains the table there is currently no code attached to it. please provide correct coding info to accomplish this task. -- oberon.black ------------------------------------------------------------------------ oberon.black's Profile: http://www.excelforum.com/member.php...o&userid=26732 View this thread: http://www.excelforum.com/showthread...hreadid=466570 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
find common text in cell in column in sheet then return total amou | Excel Worksheet Functions | |||
Using cell as worksheet name to return data on that sheet | Excel Worksheet Functions | |||
Cell and Sheet Reference/Return | Excel Worksheet Functions | |||
return cell from named sheet | Excel Discussion (Misc queries) | |||
How can I cause a cell to return the sheet name i.e. sheet 1? | Excel Worksheet Functions |