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

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

قام بنشر
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Dim R As Integer
If Not Intersect(Target.Cells(1, 1), Union(Range("B2:B10000"), Range("o2:o10000"))) Is Nothing Then
    R = Target.Row
    If Cells(R, "B").Value <> "" Then
        Cells(R, "A").Value = R + 4999
        
       
        Cells(R, "C").Value = WorksheetFunction.VLookup(Cells(R, "B"), [TUNNEL3], 2, 0)
        
        Cells(R, "D").Value = WorksheetFunction.VLookup(Cells(R, "B"), [TUNNEL3], 3, 0)
    Else
        Union(Cells(R, "0"), Cells(R, "0")).ClearContents
    End If
          End If
               If Target.Cells.CountLarge > 1 Then Exit Sub
    If Target.Row > 1 And Target.Column = 8 Then
        With Target.Offset(, 1)
            .Formula = "=MOD(" & (Target - Target.Offset(, -1)) & ",1)": .Value = .Value
        End With
End If
     If Target.Cells.CountLarge > 1 Then Exit Sub
    If Target.Row > 1 And Target.Column = 11 Then
        With Target.Offset(, 1)
            .Formula = "=MOD(" & (Target - Target.Offset(, -4)) & ",1)": .Value = .Value
        End With
    End If
If Target.Cells.Count > 1 Then Exit Sub
 
        If Not Intersect(Target, Range("B:B")) Is Nothing Then
 
            With Target(1, 3)
 
                .Value = Date
 
               
            End With
           End If
On Error GoTo 0
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