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

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

قام بنشر

السلام عليكم

كل الاصناف تجدها اخر قائمة الاصناف

تم اضافة عبارة كل الاصناف في حدث الاقلاع

            ComboBox2.AddItem "ßá ÇáÇÕäÇÝ"

اما كود البحث اصبح هكذا

If ComboBox1 = "" Then MsgBox "ÇÎÊÑ ÇáÔåÑ ÃæáÇ": Exit Sub
     d = Me.ComboBox2
     e = 0
Dim bMonth As Byte
Dim x As Integer: x = 0
Me.TextBox1.Value = 0
         For i = LBound(keyArray) To UBound(keyArray)
                 bMonth = Month(keyArray(i, 1))
            If d = "ßá ÇáÇÕäÇÝ" And bMonth = ComboBox1.ListIndex + 1 Then
                e = e + 1: ReDim Preserve itemArray(1 To 4, 1 To e)
                itemArray(1, e) = keyArray(i, 1)
                itemArray(2, e) = keyArray(i, 4)
                itemArray(3, e) = keyArray(i, 5)
                itemArray(4, e) = keyArray(i, 7)
                x = x + Val(keyArray(i, 7))
            
            ElseIf keyArray(i, 4) = d And bMonth = ComboBox1.ListIndex + 1 Then
                e = e + 1: ReDim Preserve itemArray(1 To 4, 1 To e)
                itemArray(1, e) = keyArray(i, 1)
                itemArray(2, e) = keyArray(i, 4)
                itemArray(3, e) = keyArray(i, 5)
                itemArray(4, e) = keyArray(i, 7)
                x = x + Val(keyArray(i, 7))
                
            End If
        Next i
      
        If e > 0 Then
            If UBound(itemArray, 2) > 1 Then
                Me.ListBox1.List = Application.Transpose(itemArray)
                Else
                Dim c(1 To 1, 1 To 4)
                c(1, 1) = itemArray(1, 1)
                c(1, 2) = itemArray(2, 1)
                c(1, 3) = itemArray(3, 1)
                c(1, 4) = itemArray(4, 1)
                Me.ListBox1.List = c
            End If
        Else
                Me.ListBox1.Clear
        End If
        
  Me.TextBox1.Value = x

End Sub

كل الاصناف.rar

  • 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