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

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

قام بنشر (معدل)

اخوانى واحبائى

 

ارجوا المساعدة فى الملف المرفق حيث يوجد جدولين متساوين فى عدد الصفوف والعمدان ارجوا عند تلوين خلية فى الجدول الثانى يتلون نفس الخلية فى الجدول الاول

 

 

  Book1.xlsxFetching info...

تم تعديل بواسطه Abo Sufiyan
  • تمت الإجابة
قام بنشر

وعليكم السلام ورحمة الله تعالى وبركاته 

جرب هل هدا ما تقصده 

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
 Dim A As Range
    For Each A In Range("M3:P28")
        If Not IsError(A) Then
        
    Application.ScreenUpdating = False
    Application.EnableEvents = False
      
If A.Interior.ColorIndex <> xlNone Then
     A.Offset(0, -9).Interior _
              .ColorIndex = A.Interior.ColorIndex
            Else
             A.Offset(0, -9).Interior.ColorIndex = xlNone
            End If
        End If
    Next A
    Application.ScreenUpdating = True
    Application.EnableEvents = True
    
End Sub

 

Book1 V2.xlsbFetching info...

  • Like 1

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