RafMizraim قام بنشر فبراير 3, 2022 مشاركة قام بنشر فبراير 3, 2022 السلام عليكم لو سمحت كنت عايز كود لعد عامود معين فى الليست بوكس. بمعنى لو عندى ليست بوكس مكون من ٦ أعمدة عايز اعد البيانات اللى موجودة فى العامود الرابع بس مثلا لوحده . Excel vba رابط هذا التعليق شارك More sharing options...
lionheart قام بنشر فبراير 4, 2022 مشاركة قام بنشر فبراير 4, 2022 Private Sub UserForm_Initialize() ListBox1.List = Range("A2:C11").Value End Sub Private Sub CommandButton1_Click() Dim c As Integer, i As Integer, t As Double Rem First Column In ListBox = 0 c = 0 For i = 0 To ListBox1.ListCount - 1 If ListBox1.List(i, c) <> Empty Then t = t + 1 Next i MsgBox t End Sub 3 رابط هذا التعليق شارك More sharing options...
lionheart قام بنشر فبراير 4, 2022 مشاركة قام بنشر فبراير 4, 2022 You can directly use this line if you don't care about empty items MsgBox ListBox1.ListCount 2 رابط هذا التعليق شارك More sharing options...
RafMizraim قام بنشر فبراير 5, 2022 الكاتب مشاركة قام بنشر فبراير 5, 2022 بشكرك جدا ع الرد و الكود الجامد 1 رابط هذا التعليق شارك More sharing options...
الردود الموصى بها
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.