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

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

قام بنشر

السلام عليكم

غير كود الزر CommandButton1 بالكود ادناه

Private Sub CommandButton1_Click()
Dim MyPath As String
MyPath = MyNamebook
'================================================
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False

Set MyDate = Application.Evaluate(My_Date)
With MyDate
    .Sort .Columns(2), xlAscending
End With
kh_Copy_Class
Kh_Start
FormulaToValue wsh
kh_PageSetup

With MyDate
    .Sort .Columns(1), xlAscending
End With
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
'================================================
If Dir(MyPath, vbDirectory) = vbNullString Then
    MyBook.SaveAs MyPath
    MsgBox " : تم اضافة الملف بالاسم التالي" _
    & vbCr & vbCr & MyPath, 524288, "الحمد لله"
End If
'================================================
wsh.PrintPreview
Set wsh = Nothing
Set MyBook = Nothing
Set MyDate = Nothing
End Sub

تم فيه فرز البيانات حسب عمود الاسم قبل تنفيذ الكود

ثم اعادة فرزها حسب التسلسل

قم اولا باضافة تسلسل للبيانات في العمود A قبل تشغيل الكود

 

المرفق 2003

توزيع على الفصول م1.rar

قام بنشر (معدل)

 شكرا استاذنا عبد الله وجارى التطبيق وجزاك الله خيرا

الملف يعمل تماما بعد تحميل المرفق من سيادتكم

تم تعديل بواسطه نورانور

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