Combine Comma Delimited 2 Cells data and remove duplicate
To combine two cells (comma delimited data) into one cell by removing duplicates.
User the following function.
Public Function PS_Combined(ByVal fRange As Range, ByVal sRange As Range) As String
Dim CombinedArray() As String
Dim ResultArray() As String
'Dim UniqueVals As New Collection
Dim myVal
Dim myVar
Dim PS_Result As String
Dim i As Integer
i = 0
Dim r As Integer
r = 0
Dim sameWord As Boolean
sameWord = False
Dim combinedString As String
combinedString = fRange.Cells.Value & "," & sRange.Cells.Value
CombinedArray = Split(combinedString, ",")
For Each myVal In Split(combinedString, ",")
i = i + 1
Next myVal
Dim fValue As String
Dim sValue As String
For p = 0 To i - 1
sameWord = False
fValue = CombinedArray(p)
For j = (p + 1) To (i - 1)
sValue = CombinedArray(j)
'MsgBox "P:" & p & ",,,,J:" & j
If StrComp(fValue, sValue, vbTextCompare) = 0 Then
sameWord = True
End If
'MsgBox "First:" & fValue & " AND " & sValue & " ARE " & sameWord
Next j
If sameWord = False Then
' MsgBox "Before:" & PS_Result
' MsgBox "New Add:" & fValue
PS_Result = PS_Result & "," & fValue
r = r + 1
End If
Next p
'PS_MM = combinedString
PS_Combined = Mid(PS_Result, 2, Len(PS_Result))
End Function
Download Example>>https://skitfy-my.sharepoint.com/:x:/p/pyisoe/EWldVaezQd5EhGO_3Z3Y6fYBL6nCsIQR01NExGDr148Kxg?e=iaNZ6X
ရှမ်းရိုးမ စာကြည့်တိုက်
ရှမ်းရိုးမစာကြည့်တိုက်မှာ မြန်မာ၊ အင်္ဂလိပ်၊ ရှမ်း စာအုပ်တွေနှင့် ရှမ်းအဘိဓါန်တွေ့ရပါတယ်။
စာအုပ်စာပေနှင့် သမိုင်း သုတေသန ယဉ်ကျေးမှု ဆိုင်ရာ စာအုပ်များ ရှိပါတယ်။
Download Youtube Video
1.
Copy URL from address bar
2.
Open Savefromnet website
3.
Paste Youtube video address
a
Words Limit in MS Access TextBox
Textbox မွာ စာလံုးေရ ကန္႕သတ္ခ်င္ရင္ ေအာက္က နမူနာကို သံုးပါ။
Private Sub UserReport_Exit(Cancel As Integer)
Dim NoOfWords As Long
NoOfWords = Len(Trim(Me.UserReport)) - Len(Replace(Me.UserReport, " ", "")) + 1
If NoOfWords > 200 Then
MsgBox "No. of Words=" & NoOfWords & vbCrLf & " 200 Words Max., Please", vbCritical
Cancel = True
End If
End Sub
Download Example
SKITFY Library
အင္တာနက္က ရတဲ့စာအုပ္ေတြကို သိမ္းဆည္းထားပါတယ္။
Log in မလိုပါ။
Folder အလိုက္ download ဆိုရင္ size ႀကီးပါလိမ့္မယ္။
Folder ထဲ ဝင္ၾကည့္ဖို႔ အၾကံျပဳပါတယ္။