استبدل الشيفرة في الزر بهذا ....
Dim currentText As Variant
Dim newText As String
newText = BuildNewText(infoa.Value, anfo2.Value, info3.Value)
currentText = allinfo.Value
If currentText <> "" Then
allinfo.Value = currentText & ", " & newText
Else
allinfo.Value = newText
End If
infoa.Value = ""
anfo2.Value = ""
info3.Value = ""
ثم الصق هذا الفانك في النموذج ....
Private Function BuildNewText(ParamArray TextValues() As Variant) As String
Dim i As Integer
Dim textPart As Variant
Dim result As String
For i = LBound(TextValues) To UBound(TextValues)
textPart = Trim(TextValues(i))
If textPart <> "" Then
If result <> "" Then
result = result & ", "
End If
result = result & textPart
End If
Next i
BuildNewText = result
End Function