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

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

قام بنشر

ActiveSheet.Unprotect "123"
Const StudentData As String = "بيانات الطلبة"
Const TopStudents As String = "الاوائل"

Private Sub Worksheet_Activate()

Application.DisplayAlerts = False
Sheets(TopStudents).Range("S:S").ClearContents

Sheets(StudentData).Range("V5:V212").AdvancedFilter Action:=xlFilterCopy, copytorange:=Sheets(TopStudents).Range("S8"), unique:=True
Sheets(TopStudents).Range("S9").Value = "الكل"

With Sheets(TopStudents).Range("S8")
        .Interior.Pattern = xlSolid
        .Interior.Color = 65535
        .Borders.LineStyle = xlContinuous
        .Borders.Weight = xlThin
        .Font.Size = 16
End With

With Sheets(TopStudents).Range("S9:S100")
        .Interior.Pattern = xlSolid
        .Interior.ColorIndex = 0
        .Borders.LineStyle = xlContinuous
        .Borders.Weight = xlThin
        .Font.ColorIndex = 0
        .Font.Size = 16
End With


Application.DisplayAlerts = True
ActiveSheet.Protect "123"
End Sub

لم اوفق فيها .. جزاك الله خيرا

قام بنشر
Const StudentData As String = "ÈíÇäÇÊ ÇáØáÈÉ"
Const TopStudents As String = "ÇáÇæÇÆá"

Private Sub Worksheet_Activate()

ActiveSheet.Unprotect "123"

Application.DisplayAlerts = False
Sheets(TopStudents).Range("S:S").ClearContents

Sheets(StudentData).Range("V5:V212").AdvancedFilter Action:=xlFilterCopy, copytorange:=Sheets(TopStudents).Range("S8"), unique:=True
Sheets(TopStudents).Range("S9").Value = "Çáßá"

With Sheets(TopStudents).Range("S8")
        .Interior.Pattern = xlSolid
        .Interior.Color = 65535
        .Borders.LineStyle = xlContinuous
        .Borders.Weight = xlThin
        .Font.Size = 16
End With

With Sheets(TopStudents).Range("S9:S100")
        .Interior.Pattern = xlSolid
        .Interior.ColorIndex = 0
        .Borders.LineStyle = xlContinuous
        .Borders.Weight = xlThin
        .Font.ColorIndex = 0
        .Font.Size = 16
End With


Application.DisplayAlerts = True
ActiveSheet.Protect "123"
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