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

كيف يتم تظليل عده سطور مرتبطه مع بعض بخليه معينه بعد الاختيار


Exel Man

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

السلام عليكم

الرجاء المساعده في تعديل الكود الموجود في الشيت a1

المطلوب عند الظغط على الينك الموجود في sheet1 وبعد الانتقال الى الشيت a1 يتم تحديد جميع السطور المتعلقه بهذا السطر وذالك حسب قيمه خليه معينه

مثال

اذا ضغطنا على Click here للموظف الاول فان الرابط ياخذنا الى اليشت a1 ويقوم بتظليل او فلتره جميع السطور المتعلقه بهذا الموظف

المثال بالمرفق

شكرا مقدما للخبراء وجميع الاعضاء الكرام

link_Example.zip

رابط هذا التعليق
شارك

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim cell As Range
Sheets("a1").Rows.EntireRow.Interior.ColorIndex = xlNone
Sheets("a1").Rows.EntireRow.Hidden = False
If Target.Column <> 2 Then Exit Sub
For Each cell In Sheets("a1").Range("a2:a200")
If cell.Value = ActiveCell.Value Then
cell.EntireRow.Interior.ColorIndex = 6
Else
cell.EntireRow.Hidden = True
Cells(1, 1).EntireRow.Hidden = False
End If
Next cell
End Sub

تم تعديل بواسطه ابو اسامة العينبوسي
رابط هذا التعليق
شارك

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