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

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

قام بنشر

السلام عليكم


Private Sub Worksheet_Change(ByVal Target As Range)

On Error Resume Next

Dim R As Integer

If Not Intersect(Target.Cells(1, 1), Union(Range("D18:D39"), Range("F18:F39"), Range("O18:O39"))) Is Nothing Then

    R = Target.Row

    If Cells(R, "D").Value <> "" Then

        Cells(R, "C").Value = R - 17

        Cells(R, "G").Value = Val(IIf(Cells(R, "O") <> "", Cells(R, "O"), Cells(R, "N")))

        Cells(R, "H").Value = Val(Cells(R, "F")) * Val(Cells(R, "G"))

        Cells(R, "N").Value = WorksheetFunction.VLookup(Cells(R, "D"), [prices], 3, 0)

        Cells(R, "P").Value = WorksheetFunction.VLookup(Cells(R, "D"), [prices], 4, 0)

        Cells(R, "Q").Value = (Val(Cells(R, "G")) - Val(Cells(R, "P"))) * Val(Cells(R, "F"))

    Else

        Union(Cells(R, "C"), Cells(R, "H"), Cells(R, "N"), Cells(R, "P"), Cells(R, "Q")).ClearContents

    End If


End If

On Error GoTo 0

End Sub

  • 4 months later...
قام بنشر

الاخوة الاعزاء تحية طيبه جاد استاذنا الكبير عبد الله باقشير بالكود الرائع الذي تتضمنه المشاركه هذه والذي لبى حاجتي كثيرا ، ارجو (ان كان ذلك ممكنا) تضمين المعادلات المؤشره بالاصفر في الملف المرفق بنفس الكود او آخر مع الامتنان

معادلات الى اكواد2.zip

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