Sub SheetNames()
Dim nSheets As Long
Dim i As Long
nSheets = ActiveWorkbook.Sheets.Count - 1
Sheets("Sheet1").Activate
For i = 1 To nSheets
Cells(i, 1).Value = Sheets(i + 1).Name
Next i
End Sub
MyTotal = 0
For Each ws In Worksheets
If ws.Name <> "Sheet1" Then MyTotal = MyTotal + ws.Range("B6")
Next ws
Sheets("Sheet1").Range("B6") = MyTotal
With Sheet1
NxtRw = .Cells(Rows.Count, 1).End(xlUp).Row + 1
End With
MyTotal = 0 For Each ws In Worksheets
If ws.Name <> "Sheet1" Then MyTotal = MyTotal + ws.Range("B" & NxtRw)
Next ws
Sheet1.Range("B" & NxtRw) = MyTotal
tyija1995: Yes, those 3-D functions can be useful in some cases, and they're not really well known. Not every function can use a 3-D reference. Here's a link explaining a bit more:
https://support.office.com/en-us/ar...rksheets-40ca91ff-9dcb-4ad1-99d2-787d0bc888b6