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

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

  • أفضل إجابة
قام بنشر
Sub Test()
    Dim rng As Range
    Application.ScreenUpdating = False
        With ActiveSheet
            Set rng = .Range("H2:L" & .Cells(Rows.Count, "H").End(xlUp).Row)
            With rng
                With .Columns(.Columns.Count)
                    .Formula = "=MATCH(H2,B:B,0)"
                    .Value = .Value
                    rng.Sort Key1:=.Cells(1), Order1:=xlAscending, Header:=xlYes
                    .ClearContents
                End With
            End With
        End With
    Application.ScreenUpdating = True
End Sub

 

  • Like 5

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