اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

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

  • أفضل إجابة
قام بنشر
Sub Test()
    Dim x, ws As Worksheet, sh As Worksheet, s As String, m As Long
    Application.ScreenUpdating = False
        Set ws = Worksheets(1)
        Set sh = Worksheets(2)
        sh.Range("B7:B" & Rows.Count).ClearContents
        s = sh.Range("AI3").Value
        If s = "" Then MsgBox "Select Grade First", vbExclamation: Exit Sub
        x = Application.Match(s, ws.Rows(1), 0)
        If IsError(x) Then MsgBox "No Data For This Grade", vbExclamation: Exit Sub
        m = ws.Cells(Rows.Count, x).End(xlUp).Row
        If m < 4 Then MsgBox "No Data", vbExclamation: Exit Sub
        sh.Range("B7").Resize(m - 3).Value = ws.Cells(4, x).Resize(m - 3).Value
    Application.ScreenUpdating = True
End Sub

 

  • Like 4

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