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

الرجاء المساعدة فى تعديل الكود


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

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

يعطى رساله خطا على  End sub 


Private Sub CommandButton1_Click()

On Error Resume Next

' to prepare requlred data for remaining columns of our sheet


trow = Sheet3.Cells(Rows.Count, 1).End(xlUp).row

For X = 4 To trow
Sheet2.Cells(trow, 1) = TextBox1.Value
Sheet2.Cells(trow, 3) = TextBox3.Value
Sheet2.Cells(trow, 4) = TextBox4.Value
Sheet2.Cells(trow, 5) = TextBox5.Value
Sheet2.Cells(trow, 6) = ComboBox1.Value
Sheet2.Cells(trow, 😎 = TextBox7.Value
Sheet2.Cells(trow, 7) = TextBox6.Value
Sheet2.Cells(trow, 9) = lblfloor.Caption
Sheet2.Cells(trow, 10) = lblroomtype.Caption
Sheet2.Cells(trow, 11) = Label17.Caption
Sheet2.Cells(trow, 12) = Label18.Caption
Sheet2.Cells(trow, 15) = Label19.Caption

' for outo and unique trasaction no
Sheet2.Cells(trow, 19) = Sheet2.Cells(trow = 1, 19) + 1
Unload UserForm4
UserForm4.show

End Sub

 

Form..xlsm

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

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