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

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

  • أفضل إجابة
قام بنشر
Sub Test()
    Dim x, r As Long, i As Integer, ii As Integer
    Application.ScreenUpdating = False
        For r = 2 To Cells(Rows.Count, 1).End(xlUp).Row
            x = Split(Application.Trim(Cells(r, 2).Value))
            ii = 0
            For i = LBound(x) To UBound(x)
                If x(i) <> "" Then Cells(r, 3 + ii).Value = Val(x(i)): ii = ii + 1
            Next i
            x = Split(Cells(r, 5).Value, Space(2))
            ii = 0
            For i = LBound(x) To UBound(x)
                If x(i) <> "" Then Cells(r, 6 + ii).Value = Trim(x(i)): ii = ii + 1
            Next i
        Next r
    Application.ScreenUpdating = True
End Sub

 

  • Like 2
  • Thanks 1
قام بنشر

Copy the code from my post. Go to excel worksheet and press Alt + F11 to login VBE editor then from Insert menu select Module and paste the code

Now back to the worksheet and press Alt + F8 and select the macro called Test. That's all

  • Like 1
  • Thanks 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.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information