M manish.agrawal446@gmail.com Member Jul 16, 2012 #1 Is it possible to find the names of all worsheets and store in the first sheet
Hui Excel Ninja Staff member Jul 16, 2012 #2 Manish Copy the following code into a code module in VBA and run [pre] Code: Sub Sheet_Names() Worksheets.Add before:=Sheet1 Set mysheet = ActiveSheet i = 0 For Each sh In Sheets i = i + 1 mysheet.Cells(i, 1).Value = sh.Name Next sh End Sub [/pre]
Manish Copy the following code into a code module in VBA and run [pre] Code: Sub Sheet_Names() Worksheets.Add before:=Sheet1 Set mysheet = ActiveSheet i = 0 For Each sh In Sheets i = i + 1 mysheet.Cells(i, 1).Value = sh.Name Next sh End Sub [/pre]
K kchiba Active Member Jul 16, 2012 #3 Hi try the following macro: it will put the name of each sheet from the selected row down. Sub GetSheets() For Each ws In Worksheets Selection = ws.Name Selection.Offset(1, 0).Select Next End Sub
Hi try the following macro: it will put the name of each sheet from the selected row down. Sub GetSheets() For Each ws In Worksheets Selection = ws.Name Selection.Offset(1, 0).Select Next End Sub
S shailyog Member Jul 16, 2012 #4 or you can do in this way: http://chandoo.org/forums/topic/addin-to-insert-name-of-all-sheets-in-one-worksheet
or you can do in this way: http://chandoo.org/forums/topic/addin-to-insert-name-of-all-sheets-in-one-worksheet