sburket
07-12-2001, 08:30 AM
Is there a quick way to generate a list of worksheet names?
i.e there are 30 sheets in a workbook and you want a list of sheet names.
i.e there are 30 sheets in a workbook and you want a list of sheet names.
VBA- List sheet namessburket 07-12-2001, 08:30 AM Is there a quick way to generate a list of worksheet names? i.e there are 30 sheets in a workbook and you want a list of sheet names. Gazzo 07-12-2001, 11:14 AM Hi, This is how you could do it from VB, it could probably point you in the right direction. Dim objExc As Excel.Application Dim objWbk As Excel.Workbook Dim objWsh As Excel.Worksheet Set objExc = CreateObject("Excel.Application") objExc.Visible = True Set objWbk = objExc.Workbooks.Add For Each objWsh In objWbk.Worksheets List1.AddItem objWsh.Name Next Gazzo. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum