-
-
Save snahor/932908746f8927033ad227e4c1e17f76 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function nameList(ParamArray xs() As Variant) As String | |
For i = LBound(xs) To UBound(xs) | |
For Each x In xs(i).Cells | |
If x.value <> "" Then | |
If nameList <> "" Then | |
nameList = nameList & ", " | |
End If | |
nameList = nameList & x.value | |
End If | |
Next x | |
Next i | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment