اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

قام بنشر

 

جيد استاذ وجيه 

نفس الماكرو بدون هذا الكم المتكرر من IF و  ELSE

Sub TEST()
Dim RESULT$
For i = 6 To 30
Select Case Cells(i, 4)
 Case Is >= 14: RESULT = "امتياز"
 Case Is >= 8: RESULT = "جيد جد"
 Case Is >= 6: RESULT = "جيــــد"
 Case Is >= 4: RESULT = "مقبول"
 Case Is >= 2: RESULT = "ضعيف"
 Case Else:RESULT = vbNullString
End Select
Cells(i, 9) = RESULT
Next
End Sub

 

  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information