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

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

  • أفضل إجابة
قام بنشر

Replace "Sales Bill" in th code with the Arabic characters

Sub Test()
    Dim x, ws As Worksheet, sh As Worksheet, r As Long, lr As Long
    Set ws = Sheet5: Set sh = Sheet8
    For r = 5 To ws.Cells(Rows.Count, "G").End(xlUp).Row
        If ws.Cells(r, 7).Value = "Sales Bill" Then
            ws.Cells(r, 11).Value = "Sales Bill"
        Else
            x = Application.Match(ws.Cells(r, 8).Value, sh.Columns(3), 0)
            If Not IsError(x) Then
                ws.Cells(r, 11).Value = sh.Cells(x, 4).Value
            End If
        End If
    Next r
End Sub

 

  • Like 4

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