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

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

  • أفضل إجابة
قام بنشر

جرب هذا الكود

Option Explicit

Sub Separet_values()
Dim Cel As Range
Dim m%, st1, st2, My_val
Range("E1").CurrentRegion.ClearContents

For Each Cel In Range("A1").CurrentRegion.Cells
 m = Cel.Row
    If Cel.MergeCells Then
      st1 = Cel.MergeArea.Columns(1)
      st2 = Cel.MergeArea.Columns(2)
      My_val = IIf(IsEmpty(st1), st2, st1)
      Cells(m, "E") = My_val
    End If
Next Cel

End Sub

الملف مرفق

reda23.xlsm

  • Like 3

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