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

كود صغير جدا و لكن مفيد جدا_تلوين صف الخلية النشطة او الخلية فقط


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

تم رفع هذا الكود فى مشاركة منفصله


حتى لا ننسى هذه المشاركة   كود رائع يمشى معك كظلك داخل الورقة

 

تم ارفاق الكود من الفاضل أ / h63

 

كود تلوين صف الخلية النشطة

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
    Sh.Cells.Interior.ColorIndex = xlNone
    If Target.Cells.Count = 1 Then
        With Rows(Target.Row).Interior
            .ColorIndex = 8
            .Pattern = xlSolid
        End With
    End If
End Sub

 

كود تلوين الخلية النشطة و عدم تلوين عند الكابس مرة اخرى

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Not Intersect(Target, Selection) Is Nothing Then
If Target.Interior.ColorIndex = 34 Then
Target.Interior.ColorIndex = 0
Else
Target.Interior.ColorIndex = 34
End If
End If
End Sub

مرفق الملف و الشرح

New_Folder.rar

و لا تنسونا من صالح الدعاء

تحياتى

 
تم تعديل بواسطه جلال الجمال_ابو أدهم
رابط هذا التعليق
شارك

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