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

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

  • تمت الإجابة
قام بنشر
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

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

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

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

Important Information