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

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

قام بنشر

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

اريد ان احذف السطر عند وجود قيمة سالبة في عمود... ارجو المساعدة

 

  • تمت الإجابة
قام بنشر

على افتراض أن العمود الذي به القيم السالبة هو A

يمكنك استعمال هذا الكود

For n = 2 To Cells(Rows.Count, "A").End(xlUp).Row
If Cells(n, "A").Value < 0 Then
Rows(n).Delete
n = n - 1
End If
Next n
MsgBox "Done by mr-mas.com"

بالتوفيق

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