Merhaba arkadaşlar
Aşağıdaki kod ile sayfa isimleri numeric olanlar saydırılıyor.
Şunu öğrenmek istiyorum. Sayfa isimleri numeric değilse nasıl saydırılır.
Örnek: A1,A2,A3
Aşağıdaki kod ile sayfa isimleri numeric olanlar saydırılıyor.
Kod:
Private Sub CommandButton1_Click()
Dim i As Integer, j As Integer, s As Worksheet, toplam As Double
Set s = Sheets("M.icmal")
j = 17
[B][COLOR="red"]For i = 1 To Sheets.Count[/COLOR]
[/B][COLOR="Red"][B]If IsNumeric(Sheets(i).Name) = True Then[/B][/COLOR]
s.Cells(j, "a").Value = j - 16
s.Cells(j, "a").Borders.LineStyle = 1
s.Cells(j, "a").HorizontalAlignment = xlCenter
s.Cells(j, "b").Value = Sheets(i).Range("a31").Value
s.Cells(j, "b").Borders.LineStyle = 1
s.Cells(j, "c").Value = Sheets(i).Range("e31").Value
s.Cells(j, "c").HorizontalAlignment = xlCenter
s.Cells(j, "c").Borders.LineStyle = 1
s.Cells(j, "d").Value = Sheets(i).Range("f31").Value
s.Cells(j, "d").HorizontalAlignment = xlCenter
s.Cells(j, "d").Borders.LineStyle = 1
s.Cells(j, "e").Value = Sheets(i).Range("g31").Value
s.Cells(j, "e").Borders.LineStyle = 1
s.Cells(j, "e").HorizontalAlignment = xlCenter
s.Cells(j, "f").Value = Sheets(i).Range("h31").Value
s.Cells(j, "f").Borders.LineStyle = 1
s.Cells(j, "f").HorizontalAlignment = xlCenter
s.Cells(j, "f").NumberFormat = "#,##0.00"
toplam = toplam + Sheets(i).Range("h34").Value
j = j + 1
End If
Next i
Şunu öğrenmek istiyorum. Sayfa isimleri numeric değilse nasıl saydırılır.
Örnek: A1,A2,A3
