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

اسم ليبل الفورم هو اسم الخلية


omhamzh

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

السلام عليكم ورحمة الله وبركاته الاساتذة مشرفى المنتدى

احتاج كودين للفورم

الاول لجعل بدأ من Label7 caption = C4, ,Label6 caption = B4,,Label5 caption = a4 وهكذا حتى LABEL26

بحيث اذا تغير الاسم فى الخلية يتغير فى الليبل

الكود الاخر 

كود ل TextBox26

لكى تظهر ناتج طرح التكست بوكس من A:L-M:V

بارك الله فيكم وجزاكم كل الخير

form1.xlsm

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

وجدت الكود لتغير الليبل اخواتى الاساتذة وها هو للافادة للاخوة من تصميم الاستاذ ياسر خليل ابو البراء

Private Sub Worksheet_Change(ByVal Target As Range)
    On Error Resume Next
        If Intersect(Range("A4:V4"), Target) Is Nothing Then
            Exit Sub
        Else
            UserForm1.Label5.Caption = Range("A4").Value
            UserForm1.Label6.Caption = Range("b4").Value

        End If
    On Error GoTo 0
End Sub

وبورقة العمل

Private Sub UserForm_Initialize()
Label5.Caption = Range("A4").Value

و كود

كود ل TextBox26

لكى تظهر ناتج طرح التكست بوكس من A:L-M:V

للاستاذ حماده عمر

Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)

TextBox26.Value = Val(TextBox2) + Val(TextBox3) + Val(TextBox4) + Val(TextBox5) + Val(TextBox6) + Val(TextBox7) + Val(TextBox8) + Val(TextBox9) + Val(TextBox10) + Val(TextBox12) + Val(TextBox12) - Val(TextBox13) - Val(TextBox14) - Val(TextBox15) - Val(TextBox16) - Val(TextBox17) - Val(TextBox18) - Val(TextBox19) - Val(TextBox20) - Val(TextBox21) - Val(TextBox22)

End Sub

 

بارك الله فيكم 

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

احتاج تغير حدث الكود من تحريك الماوس الى عند حدوث تغير او بمجرد الكتابة

 

Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)

TextBox26.Value = Val(TextBox2) + Val(TextBox3) + Val(TextBox4) + Val(TextBox5) + Val(TextBox6) + Val(TextBox7) + Val(TextBox8) + Val(TextBox9) + Val(TextBox10) + Val(TextBox12) + Val(TextBox12) - Val(TextBox13) - Val(TextBox14) - Val(TextBox15) - Val(TextBox16) - Val(TextBox17) - Val(TextBox18) - Val(TextBox19) - Val(TextBox20) - Val(TextBox21) - Val(TextBox22)

End Sub

لان الكود يعمل عند تحريك الماوس فقط

بارك الله فيكم

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

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