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

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

  • 2 weeks later...
قام بنشر
Sub Test()
    Dim x, y, sh As Worksheet, lr As Long, i As Long, cnt As Long
    With Sheet1
        lr = .Cells(Rows.Count, 1).End(xlUp).Row
        For i = 4 To lr
            If .Cells(i, 1).Value <> "" And .Cells(i, 7).Value <> "" Then
                If InStr(.Cells(i, 7).Value, Chr(219) & Chr(237) & Chr(209)) Then
                    Set sh = Sheet3
                ElseIf InStr(.Cells(i, 7).Value, Chr(227) & Chr(196) & Chr(222) & Chr(202)) Then
                    Set sh = Sheet4
                Else
                    Set sh = Sheet2
                End If
                x = Application.Match(.Cells(i, 1).Value, sh.Columns(1), 0)
                If Not IsError(x) Then
                    y = Application.Match(.Range("G3").Value2, sh.Rows(3), 0)
                    If Not IsError(y) Then
                        sh.Cells(x, y).Value = "*"
                        cnt = cnt + 1
                    End If
                End If
            End If
        Next i
    End With
    MsgBox "Transferred Successfully = " & cnt, 64
End Sub

 

  • Like 2
  • 11 months later...

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