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 36 weeks ago
6 years 22 weeks ago
6 years 34 weeks ago
6 years 37 weeks ago
6 years 38 weeks ago
6 years 43 weeks ago
6 years 52 weeks ago
7 years 2 days ago
7 years 3 days ago
7 years 3 days ago