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

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

وعليكم السلام

أهلاً بك أخي الكريم حسام في المنتدى ونورت بين إخوانك

جرب الكود التالي بفرض أن القيم موجودة في النطاق A1:D10 على سبيل المثال

Sub Test()
    Dim Cel As Range
    For Each Cel In Range("A1:D10")
        If Cel.Value = "A" Then
            Cel.Value = "B"
        ElseIf Cel.Value = "B" Then
            Cel.Value = "A"
        End If
    Next Cel
End Sub

تقبل تحياتي

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

الحمد لله أن تم المطلوب على خير

والحمد لله الذي بنعمته تتم الصالحات

تقبل تحياتي أخي الفاضل حسام وأهلاً بك في المنتدى مرة أخرى ولا تحرمنا من موضوعاتك

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

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.

×
×
  • اضف...

Important Information