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

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

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

ربما هذا الماكرو يفي بالغرض

Option Explicit

Sub Crezy_filter()
Dim Sh As Worksheet
Dim i%, m%, Lr%
Dim Obj As Object
Dim My_match
Set Sh = Sheets("Sheet1")
Set Obj = CreateObject("Vbscript.Regexp")
Lr = Sh.Cells(Rows.Count, 1).End(3).Row
Sh.Range("C4").CurrentRegion.ClearContents
m = 4
With Obj
.Pattern = "^([A-Z][a-z]\d+)"
.Global = True
.ignorecase = False
End With
For i = 4 To Lr
    If Obj.test(Sh.Cells(i, 1)) Then
      Set My_match = Obj.Execute(Sh.Cells(i, 1))
       Sh.Cells(m, 3) = Sh.Cells(i, 1)
      m = m + 1
    End If
Next
Set Obj = Nothing
End Sub

الملف مرفق

EE22.xlsm

  • Like 1

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