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

توليد ارقام عشوائية


زهرة122
إذهب إلى أفضل إجابة Solved by سليم حاصبيا,

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

  • أفضل إجابة

جربي هذا الملف

كلما نريدين مجموعة اضغطي عل الزر Run

code

Option Explicit

Sub Arkam_3ashwa3iat()
Dim Formule$
 Range("A3:C6").Formula = _
 "=RANDBETWEEN(1,$E3/3)"

 Range("A3:C6").Value = _
 Range("A3:C6").Value

 Formule = "=IF(SUM($A3:$C3)>$E3,SUM($A3:$C3)-E3,"
 Formule = Formule & "IF(SUM($A3:$C3)<"
 Formule = Formule & "$E3,$E3-SUM($A3:$C3),0))"
 
 Range("D3").Resize(4).Formula = Formule

 Range("D3").Resize(4).Value = _
 Range("D3").Resize(4).Value
End Sub

Zahra.xlsm

  • Like 3
رابط هذا التعليق
شارك

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