Hi,
I am looking to write a formula that will include into one cell all the values that are visible in column A after filtering. Looking online I have only been able to find the below;
however when I now try to use the ConcatenateVisible formula it brings a #NAME? error.
Please can somebody advise of another way to do this or advise how to make the current macro/formula work?
Thanks in advance!
I am looking to write a formula that will include into one cell all the values that are visible in column A after filtering. Looking online I have only been able to find the below;
VBA Code:
Public Function ConcatenateVisible(rng As Variant, seperator As String, Optional IGNORE_EMPTY As Boolean = False)
For Each cll In rng
If cll.EntireRow.Hidden = False And Not (IsEmpty(cll) And IGNORE_EMPTY) Then _
ConcatenateVisible = ConcatenateVisible & cll.Value & seperator
Next
ConcatenateVisible = Left(ConcatenateVisible, Len(ConcatenateVisible) - Len(seperator))
End Function
however when I now try to use the ConcatenateVisible formula it brings a #NAME? error.
Please can somebody advise of another way to do this or advise how to make the current macro/formula work?
Thanks in advance!