Worksheetsコレクション
実行プログラム
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Sub Sample2_7_1() Dim objWS As Worksheet Dim i As Integer i = 1 For Each objWS In ThisWorkbook.Worksheets Cells(i, 1).Value = objWS.Name i = i + 1 Next objWS End Sub |
実行後