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

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

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

السلام عليكم ورحمة الله وبركاته

هل توجد طريقة سريعة لإدراج صفوف فارغة بين الصفوف المحتوية على بيانات فى الشيت المرفق

أسماء العاملين بالمدرسة وبياناتهم 2017.rar

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

الحل هنا

الكود

Option Explicit
Sub salim_rows()
Dim t%
Dim lr%
Dim my_rg As Range
Application.ScreenUpdating = False
If ActiveSheet.Name <> "المدرسة " Then GoTo End_Me
lr = Cells(Rows.Count, 1).End(3).Row
On Error Resume Next
Set my_rg = Range("a4:m" & lr).SpecialCells(4)
my_rg.EntireRow.Delete
On Error GoTo 0
t = 6
    Do Until Cells(t, "A") = ""
        Rows(t).Insert
        t = t + 2
    Loop
End_Me:
Application.ScreenUpdating = True
End Sub

الملف مرفق

 

 

أسماء العاملين 2017 salim.xlsm

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