I've been trying to make complicated analyses more transparent and accessible to new users.
Yesterday someone helped me create a macro that generates a list of each of the worksheets in a workbook.
It works great, but after applying it to a few workbooks I think the process would be substantially improved if I could add the following:
1) if every worksheet had a named cell that contained a brief description of the source and use of data on the worksheet, then when the index listed the worksheet name in column A, the description could be listed in column B.
2) if possible, column C could list all worksheets/workbooks that use the listed worksheet as a source of data; and column D could list every worksheet/workbook that the listed sheet used as a source of data.
I've included the first part of the code below. Thanks to anyone who can help.
Denise
Private Sub Workbook_Open()
Dim ws As Worksheet
Dim i As Integer
Worksheets("Index").Range("A:A").ClearContents
For Each ws In ThisWorkbook.Worksheets
i = i + 1
Worksheets("Index").Range("A" & i) = ws.Name
Next ws
End Sub
Yesterday someone helped me create a macro that generates a list of each of the worksheets in a workbook.
It works great, but after applying it to a few workbooks I think the process would be substantially improved if I could add the following:
1) if every worksheet had a named cell that contained a brief description of the source and use of data on the worksheet, then when the index listed the worksheet name in column A, the description could be listed in column B.
2) if possible, column C could list all worksheets/workbooks that use the listed worksheet as a source of data; and column D could list every worksheet/workbook that the listed sheet used as a source of data.
I've included the first part of the code below. Thanks to anyone who can help.
Denise
Private Sub Workbook_Open()
Dim ws As Worksheet
Dim i As Integer
Worksheets("Index").Range("A:A").ClearContents
For Each ws In ThisWorkbook.Worksheets
i = i + 1
Worksheets("Index").Range("A" & i) = ws.Name
Next ws
End Sub