DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Dim Sütun As Byte
Private Sub cmdAnamenu_Click()
TabldotForm.Hide
AnaForm.Show
End Sub
Private Sub CommandButton1_Click()
Dim X As Byte, Say As Byte, Satır As Byte, Y As Integer
For X = 1 To 5
If Me.Controls("OptionButton" & X) = False Then
Say = Say + 1
End If
Next
If Say = 5 Then
MsgBox "Lütfen ay seçimi yapınız !"
Exit Sub
End If
Satır = 3
Application.ScreenUpdating = False
With Sheets("tabldot")
.Range("A3:G33").ClearContents
For X = Sütun To Sütun + 30
If Satır > 3 And Month(Sheets("liste").Cells(1, Sütun - 1)) <> Month(Sheets("liste").Cells(1, Sütun)) Then
GoTo Devam
Else
.Cells(Satır, 1) = Sheets("liste").Cells(1, Sütun)
.Cells(Satır, 2) = Sheets("liste").Cells(332, Sütun)
.Cells(Satır, 3) = Sheets("liste").Cells(327, Sütun)
For Y = 315 To 318
If .Cells(Satır, 4) = "" Then
.Cells(Satır, 4) = Sheets("liste").Cells(Y, Sütun)
Else
.Cells(Satır, 4) = .Cells(Satır, 4) & "+" & Sheets("liste").Cells(Y, Sütun)
End If
Next
For Y = 319 To 321
If .Cells(Satır, 5) = "" Then
.Cells(Satır, 5) = Sheets("liste").Cells(Y, Sütun)
Else
.Cells(Satır, 5) = .Cells(Satır, 5) & "+" & Sheets("liste").Cells(Y, Sütun)
End If
Next
For Y = 322 To 324
If .Cells(Satır, 6) = "" Then
.Cells(Satır, 6) = Sheets("liste").Cells(Y, Sütun)
Else
.Cells(Satır, 6) = .Cells(Satır, 6) & "+" & Sheets("liste").Cells(Y, Sütun)
End If
Next
For Y = 325 To 326
If .Cells(Satır, 7) = "" Then
.Cells(Satır, 7) = Sheets("liste").Cells(Y, Sütun)
Else
.Cells(Satır, 7) = .Cells(Satır, 7) & "+" & Sheets("liste").Cells(Y, Sütun)
End If
Next
Satır = Satır + 1
Sütun = Sütun + 1
End If
Next
Devam:
.Select
End With
If OptionButton1 = True Then Sütun = 8
If OptionButton2 = True Then Sütun = 38
If OptionButton3 = True Then Sütun = 69
If OptionButton4 = True Then Sütun = 99
If OptionButton5 = True Then Sütun = 130
Application.ScreenUpdating = True
MsgBox "Aylık yemek listesi hazırlanmıştır.", vbInformation
End Sub
Private Sub OptionButton1_Click()
Sütun = 8
End Sub
Private Sub OptionButton2_Click()
Sütun = 38
End Sub
Private Sub OptionButton3_Click()
Sütun = 69
End Sub
Private Sub OptionButton4_Click()
Sütun = 99
End Sub
Private Sub OptionButton5_Click()
Sütun = 130
End Sub
satırında hata verdi.If Satır > 3 And Month(Sheets("liste").Cells(1, Sütun - 1)) <> Month(Sheets("liste").Cells(1, Sütun)) Then
Merhaba,
"tabldot" sayfasındaki sarı renkli bölümlere veriler toplanarakmı aktarılacak?
Birde "AYLIK YEMEK LİSTESİNİ GÖR" butonuna bastığınızda sayfayımı açmak istiyorsunuz?