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

التعديل والاضافة في خلايا من اليوزرفورم باستثناء خلايا المعادلات


vidan

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

السلام عليكم اخوتي الكرام

أعمل على ملف اكسل عند ادخال البيانات من اليوزرفورم يمسح المعادلات الخلايا التي في الشيت عند الضغط على التعديل أو الاضافة !

أريد ادخال hasformula = falsae  في الكود الخاص بي لمنع مسح المعادلات في الخلايا  عند الادخال أو التعديل هل هناك امكانية لذلك

هذه الاكواد للامرين الادخال والتعديل :

Private Sub CommandButton1_Click()
For j = 1 To 21
        Cells(r, j) = Controls("TextBox" & j).Text
Next j
ListBox1.List(i, 0) = TextBox2.Text
End Sub
Private Sub CommandButton2_Click()
       
lrw = Sheets(1).Cells(Rows.Count, 2).End(xlUp).Row
For j = 1 To 21
        Sheets(1).Cells(lrw + 1, j) = Controls("TextBox" & j).Text
Next j
For i = 1 To 21
            Controls("TextBox" & i).Text = ""
Next i
 ListBox1.AddItem
 ListBox1.List(ListBox1.ListCount - 1, 0) = Sheets(1).Cells(lrw + 1, 2).Value
  ListBox1.List(ListBox1.ListCount - 1, 1) = lrw + 1
   TextBox1.Value = Application.WorksheetFunction.Max(Sheets(1).Range("A4:A4000")) + 1
TextBox2.SetFocus
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