DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Function SPLIT_TEXT(ByVal Rng As Range, No As Long) As String
Dim Matches As Object
With VBA.CreateObject("VBScript.RegExp")
.Global = True
.IgnoreCase = False
.Pattern = "[A-ZÇĞİÖŞÜ][a-zçğıöşü]*"
Set Matches = .Execute(Rng.Text)
If Matches.Count = 0 Then
SPLIT_TEXT = CVErr(xlErrNA)
Exit Function
End If
If No >= 1 And No <= Matches.Count Then
SPLIT_TEXT = Matches(No - 1).Value
End If
End With
End Function