اذهب الي المحتوي
أوفيسنا

أبو چيداء

03 عضو مميز
  • Posts

    237
  • تاريخ الانضمام

  • تاريخ اخر زياره

كل منشورات العضو أبو چيداء

  1. الكود لا يعمل مع office 2007 برجاء تعديل الكود لكي يعمل مع 2007-2010
  2. اخي ابن مصر الكود يعمل معي بشكل جيد ولكن اذا ارسلت الملف لشخص اخر يعمل معه ولكن يقوم بنسخ ملف اكسيل فارغ فما هي المشكلة
  3. انا اقصد النسخة الاحتياطية تكون بدون اي ماكرو وتكون امتدادها XLSX
  4. اخي الفاضل ابن مصر هذا هو المطلوب فعلا ولكن اريد بدون اي فورم او ميديول ويكون XLSX
  5. كود لنسخ جميع الشيتات الي workbook جديد
  6. اريد اضافة زر اخر يأخذ نتيجة الليست بوكس ويضعها في شيت جديد
  7. شكرا اخي ابراهيم
  8. برجاء الافادة للاهمية
  9. ListBox1.AddItem .Cells(A, 4): ListBox1.List(C, 2) = Format(.Cells(A, 2), "dd-mm-yyyy") ListBox1.List(C, 1) = .Cells(A, 3) ListBox1.List(C, 3) = .Cells(A, 1) اخي الفاضل ابراهيم الداتا عندي فيها اكتر من 50 عمود وانا اريد ان يظهر في الليست بوكس ثمانية فقط ولكنهم غير متتالين فاريد انا اغير الكود يكون العمود الاول في الليست بوكس يساوي مثلا العمود الرابع في الشيت وهكذا الثمانية ممكن الطريقة على نفس المثال ده وشكرا
  10. اخي ابراهيم. اشكرك اولا. الكود يعمل تمام ولكن لو اخترت اسم دورة فقط بدون كتابة تواريخ نظهر كل الدورات ولكني اريد ان تظهر الدورة المختارة فقط وشكرا
  11. بالمرفقات فورم اريد عندما اختار اسم الدورة من الكومبوبوكس تاريخين لفترة معينة يظهر في الليست بوكس كل الدورات التي تمت في هذه الفترة لهذه الدورة وشكرا form2.zip
  12. تمام اخي الكريم ولكني اريد ان اضيف ثلاثة اعمدو اخري وتظهر في الليست بوكس
  13. لا تظهر نتيجة في الليست بوكس واعمل ب اوفيس 2010
  14. اخي الفاضل لا تخرج نتائج في الليست بوكس
  15. اريد كتابة تاريخ بداية الفترة وتاريخ نهاية الفترة تظهر هذه الدورات التي تمت لهذه الفترة form.zip
  16. شكرا لك اخى الكريم هذا هو المقصود بالفعل
  17. المطلوب بالمرفقات form.zip
  18. بارك الله فيك اخي الكريم
  19. المرفقات في الاسفل Rows.rar
  20. المطلوب لكل موظف بدلا من وجود اكثر من صف يكون صف واحد والقرصات مكتوبة فى خلية واحدة
  21. Option Explicit 'Main Function Function SpellNumber(ByVal MyNumber) Dim Dollars, Cents, Temp Dim DecimalPlace, Count ReDim Place(9) As String Place(2) = " Thousand " Place(3) = " Million " Place(4) = " Billion " Place(5) = " Trillion " ' String representation of amount. MyNumber = Trim(Str(MyNumber)) ' Position of decimal place 0 if none. DecimalPlace = InStr(MyNumber, ".") ' Convert cents and set MyNumber to dollar amount. If DecimalPlace > 0 Then Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & _ "00", 2)) MyNumber = Trim(Left(MyNumber, DecimalPlace - 1)) End If Count = 1 Do While MyNumber <> "" Temp = GetHundreds(Right(MyNumber, 3)) If Temp <> "" Then Dollars = Temp & Place(Count) & Dollars If Len(MyNumber) > 3 Then MyNumber = Left(MyNumber, Len(MyNumber) - 3) Else MyNumber = "" End If Count = Count + 1 Loop Select Case Dollars Case "" Dollars = "No Dollars" Case "One" Dollars = "One Dollar" Case Else Dollars = Dollars & " Dollars" End Select Select Case Cents Case "" Cents = " and No Cents" Case "One" Cents = " and One Cent" Case Else Cents = " and " & Cents & " Cents" End Select SpellNumber = Dollars & Cents End Function ' Converts a number from 100-999 into text Function GetHundreds(ByVal MyNumber) Dim Result As String If Val(MyNumber) = 0 Then Exit Function MyNumber = Right("000" & MyNumber, 3) ' Convert the hundreds place. If Mid(MyNumber, 1, 1) <> "0" Then Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred " End If ' Convert the tens and ones place. If Mid(MyNumber, 2, 1) <> "0" Then Result = Result & GetTens(Mid(MyNumber, 2)) Else Result = Result & GetDigit(Mid(MyNumber, 3)) End If GetHundreds = Result End Function ' Converts a number from 10 to 99 into text. Function GetTens(TensText) Dim Result As String Result = "" ' Null out the temporary function value. If Val(Left(TensText, 1)) = 1 Then ' If value between 10-19... Select Case Val(TensText) Case 10: Result = "Ten" Case 11: Result = "Eleven" Case 12: Result = "Twelve" Case 13: Result = "Thirteen" Case 14: Result = "Fourteen" Case 15: Result = "Fifteen" Case 16: Result = "Sixteen" Case 17: Result = "Seventeen" Case 18: Result = "Eighteen" Case 19: Result = "Nineteen" Case Else End Select Else ' If value between 20-99... Select Case Val(Left(TensText, 1)) Case 2: Result = "Twenty " Case 3: Result = "Thirty " Case 4: Result = "Forty " Case 5: Result = "Fifty " Case 6: Result = "Sixty " Case 7: Result = "Seventy " Case 8: Result = "Eighty " Case 9: Result = "Ninety " Case Else End Select Result = Result & GetDigit _ (Right(TensText, 1)) ' Retrieve ones place. End If GetTens = Result End Function ' Converts a number from 1 to 9 into text. Function GetDigit(Digit) Select Case Val(Digit) Case 1: GetDigit = "One" Case 2: GetDigit = "two" Case 3: GetDigit = "Three" Case 4: GetDigit = "Four" Case 5: GetDigit = "Five" Case 6: GetDigit = "Six" Case 7: GetDigit = "Seven" Case 8: GetDigit = "Eight" Case 9: GetDigit = "Nine" Case Else: GetDigit = "" End Select End Function
×
×
  • اضف...

Important Information