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

طلب مساعدة في حماية معادلة خلايا شيت


jall77

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

هذا اول عملي أنجزته بعد اطلاع على مشاركات اساتذة الفضلاء في هذا المنتدى .

البرنامج الذي انجزته يعمل بشكل عادي لكن عند اضافة كود حماية معادلة الخلايا اصبح هناك مشكل لم استطيع حله

الكود الذي وضعته في البداية هو Activesheet.unprotect وفي النهاية وضعتActivesheet.protect

البرنامج في المرفقات

Bureau.rar

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

لقد وجدت كود للأستاذ : يحيى حسين



Private Sub Worksheet_SelectionChange(ByVal Target As Range)

	    Dim Rng As Range

	    Static Cell As Range

	    Static TheFormula As String

	    Set Rng = Range("A1:A20")

	    If Not Application.Intersect(Target, Rng) Is Nothing Then

			    If Not Cell Is Nothing Then

					    Cell.Formula = TheFormula

			    End If

			    Set Cell = ActiveCell

			    With Cell

					    TheFormula = .Formula

					    .Value = .Value

			    End With

	    Else

			    With Cell

					    .Formula = TheFormula

			    End With

	    End If

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