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

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

قام بنشر
 Dim strDate As String, strTime As String
  Dim filePath As String
 Dim ws As Worksheet
  Dim i As Long
Application.ScreenUpdating = False
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
  For i = 0 To ListBox1.ListCount - 1
  If ListBox1.Selected(i) = True Then
  For Each ws In ThisWorkbook.Worksheets
  For Each f In ws.Range("a2:a10000")
  If f = ListBox1.List(i, 0) Then
  ws.Select
  f.Select
  Exit For
  End If
  Next f
  Next ws
 ActiveCell.Offset(0, 3).Value = "ايقاف"
   ActiveCell.Offset(0, 4).Value = Date
  End If
  Next i
  i = Empty
    Application.Calculation = xlCalculationAutomatic
    Application.EnableEvents = True
    Application.DisplayAlerts = True
    Application.ScreenUpdating = True

 

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

تفضل اخى الكريم 

 Dim strDate As String, strTime As String
 Dim filePath As String
 Dim ws As Worksheet
 Dim i As Long
 Application.ScreenUpdating = False
 Application.EnableEvents = False
 Application.Calculation = xlCalculationManual

  For i = 0 To ListBox1.ListCount - 1
  If ListBox1.Selected(i) = True Then

  For Each ws In ThisWorkbook.Worksheets

    For Each f In ws.Range("a2:a" & cells(Rows.Count, "A").End(xlUp).Row)

       If f = ListBox1.List(i, 0) Then
         f.Offset(0, 3).Value = "ايقاف"
         f.Offset(0, 4).Value = Date

       Exit For
       End If
     Next f
  Next ws
  End If
  Next i
  i = Empty

 Application.Calculation= xlCalculationAutomatic
 Application.EnableEvents = True
 Application.DisplayAlerts = True
 Application.ScreenUpdating = True

 

 

  • Like 1
  • 4 weeks later...

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

سجل دخولك الان
  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information