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

العمليات الحسابية بين التكست بوكسس فى اليوزر فورم


zaatout
إذهب إلى أفضل إجابة Solved by Ali Mohamed Ali,

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

السلام عليكم ورحمة الله وبركاته

أساتذتي الأفاضل

أريد أن أقوم بعملية حسابية تعتمد على النسبة المئوية وتظهر النتيجة في التكست بوكس 

مثال :

 تكست بوكس 1 -1090 *80 / 100 = 872

 تكست بوكس 2 - 1090 * 95 /100 =1035,5

 تكست بوكس 3 - 1090 * 114 / 100=1242,6

حساب النسبة المئوية.xlsm

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

وعليكم السلام-اهلا بك فى المنتدى - سيتم ما تطلب بهذا الكود 

Private Sub CommandButton1_Click()
TextBox2.Value = (TextBox1.Value) * 0.8
TextBox3.Value = (TextBox1.Value) * 0.95
TextBox4.Value = (TextBox1.Value) * 1.14
End Sub

1حساب النسبة المئوية.xlsm

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

  • أفضل إجابة

كان عليك توضيح هذا الطلب من البداية تجنباً لعدم اهدار الوقت -تفضل يمكنك هذا بذلك الكود

Private Sub CommandButton1_Click()
On Error Resume Next
Dim ws As Worksheet
Set ws = Sheets("Sheet1")
Me.TextBox2.Value = Me.TextBox1.Value * WorksheetFunction.VLookup(Me.ComboBox1.Value, ws.Range("a2:d20"), 2, 0)
Me.TextBox3.Value = Me.TextBox1.Value * WorksheetFunction.VLookup(Me.ComboBox1.Value, ws.Range("a2:d20"), 3, 0)
Me.TextBox4.Value = Me.TextBox1.Value * WorksheetFunction.VLookup(Me.ComboBox1.Value, ws.Range("a2:d20"), 4, 0)
End Sub

2حساب النسبة المئوية.xlsm

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

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