Why is this crashing/locking up excel?
I'm trying to concatenate a filtered column into a single cell separated with commas, only visible non empty cells.
Public Function Parts(myRange As Range)
Dim aOutput As String, entry As Range
For Each entry In myRange
If entry.EntireColumn.Hidden = False Then
aOutput = aOutput & entry.Value & ","
End If
Next
Parts = Left(aOutput, Len(aOutput) - 1)
End Function
Recent comments
5 years 41 weeks ago
6 years 27 weeks ago
6 years 39 weeks ago
6 years 42 weeks ago
6 years 43 weeks ago
6 years 48 weeks ago
7 years 4 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago