Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
copy all sheet tab names of a file in a cell
hi,
I want to copy the names of all existing sheet names of a file as a list in any of the sheets of the file. Your expert advice is highly appreciated. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
copy all sheet tab names of a file in a cell
sub toc() for i=1 to sheets.count cells(i,1).value=sheets(i).name next i end sub -- Don Guillett Microsoft MVP Excel SalesAid Software "MA" wrote in message ... hi, I want to copy the names of all existing sheet names of a file as a list in any of the sheets of the file. Your expert advice is highly appreciated. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
copy all sheet tab names of a file in a cell
Hi Don,
Thanks for your quick response. This is working perfectly fine, if can you help in the scenario the list is required to be copied on to a specific cell reference in a specific sheet of the file. thanks for your help. MA "Don Guillett" wrote: sub toc() for i=1 to sheets.count cells(i,1).value=sheets(i).name next i end sub -- Don Guillett Microsoft MVP Excel SalesAid Software "MA" wrote in message ... hi, I want to copy the names of all existing sheet names of a file as a list in any of the sheets of the file. Your expert advice is highly appreciated. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
copy all sheet tab names of a file in a cell
Private Sub ListSheets()
'list of sheet names starting at H5 Dim rng As Range Dim I As Integer Set rng = Sheets("Sheet3").Range("H5") 'adjust sheetname and range For Each Sheet In ActiveWorkbook.Sheets rng.Offset(I, 0).Value = Sheet.Name I = I + 1 Next Sheet End Sub Gord Dibben MS Excel MVP On Wed, 9 Sep 2009 09:15:02 -0700, MA wrote: Hi Don, Thanks for your quick response. This is working perfectly fine, if can you help in the scenario the list is required to be copied on to a specific cell reference in a specific sheet of the file. thanks for your help. MA "Don Guillett" wrote: sub toc() for i=1 to sheets.count cells(i,1).value=sheets(i).name next i end sub -- Don Guillett Microsoft MVP Excel SalesAid Software "MA" wrote in message ... hi, I want to copy the names of all existing sheet names of a file as a list in any of the sheets of the file. Your expert advice is highly appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy file names | Excel Discussion (Misc queries) | |||
copy of formula contains file names into other cells | Excel Worksheet Functions | |||
how can I copy file names into cells | Excel Discussion (Misc queries) | |||
copy file names | Excel Discussion (Misc queries) | |||
need to copy a long list of file names | Excel Discussion (Misc queries) |