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

تعديل على كود SORT


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

السلام عليكم 

ارجو المساعده عند استخدام الكود المرفق كود ترتيب  .. يتم الوقوف على اخر خليه بها بيانات فى العمود A

بدلا من الوقوف على الخليه  A4

Sub SortData()
    Dim LR As Long
    LR = Range("A" & Rows.Count).End(xlUp).Row
    Range("A4:l" & LR).Sort Key1:=Range("B1:B" & LR), Order1:=xlAscending, Key2:=Range("L4:L" & LR), Order2:=xlDescending, Header:=xlYes
    Sheets("عام").Select
    ActiveWindow.SmallScroll Down:=-18
    Range("A4").Select
End Sub

 

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

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