If Me.ComboBox7.Value = 0 Then
Else
ws.Cells(iRow + 1, 2).Value = Me.TextBox4.Value
ws.Cells(iRow + 1, 3).Value = DateSerial(Year(Me.TextBox1.Value), Month(Me.TextBox1.Value), Day(Me.TextBox1.Value))
ws.Cells(iRow + 1, 4).Value = Me.ComboBox4.Value
ws.Cells(iRow + 1, 8).Value = Me.ComboBox3.Value
ws.Cells(iRow + 1, 13).Value = Me.ComboBox5.Value
If Me.ComboBox8.Value = 0 Then
Else
ws.Cells(iRow + 2, 2).Value = Me.TextBox4.Value
ws.Cells(iRow + 2, 3).Value = DateSerial(Year(Me.TextBox1.Value), Month(Me.TextBox1.Value), Day(Me.TextBox1.Value))
ws.Cells(iRow + 2, 4).Value = Me.ComboBox4.Value
ws.Cells(iRow + 2, 8).Value = Me.ComboBox3.Value
ws.Cells(iRow + 2, 13).Value = Me.ComboBox5.Value
End If
End If
المطلوب تعديل الكود السابق بحيث انه اذا لم ادخل قيمة في الكمبو بوكس 7 لايفعل شئ واذا كان هناك قيمة ينفذ الكود اللي بعد else
ثم اذا كان لايوجد قيمة في كومبو بوكس 8 لايفعل شئ واذا كان هناك قيمة ينفذ الكود اللي بعد else
,ومرفق الملف ايضا للتوضيح اكثر
16دورة محاسبية.rar