Create worksheet index

I

index

Hi there,

Is there anyway I can user a macro to create an index of all the
worksheets in a workbook?

Ideally it'll create a worksheet at the front of my book listing the
names of the worksheets which follow in the same book?

Can anyone help please?
 
A

Anders S

Here's a quick and dirty that might get you started

'-----
Option Explicit
Sub makeIndex()
Dim shNum As Integer
Worksheets.Add before:=Sheets(1)
For shNum = 2 To Sheets.Count
Range("A" & shNum - 1).Value = Sheets(shNum).Name
Next
End Sub
'-----

HTH
Anders Silven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top