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 44 weeks ago
6 years 30 weeks ago
6 years 42 weeks ago
6 years 45 weeks ago
6 years 46 weeks ago
6 years 51 weeks ago
7 years 7 weeks ago
7 years 8 weeks ago
7 years 8 weeks ago
7 years 8 weeks ago