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

طلب مساعدة في تعديل كود حتي يعمل


إذهب إلى أفضل إجابة Solved by زوهير,

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

  • أفضل إجابة

السلام عليك اخي

 

ضع الكود في حدث الورقة  وجرب ان شاءالله ياتي بثماره

Private Sub Worksheet_Change(ByVal Target As Range)
Dim c As Range
Application.EnableEvents = False
On Error Resume Next
        For Each c In Range("D1:D" & Cells(Rows.Count, "D").End(xlUp).Row)
            X = Cells(c.Row, Columns.Count).End(xlToLeft).Column + 1
            If c = "Yes" Then
                If Cells(c.Row, X) = "" Then
                   Cells(c.Row, X).Value = c.Offset(, -3).Value
                End If
            End If
        Next c
    Application.EnableEvents = True
End Sub

  • 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