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 34 weeks ago
6 years 20 weeks ago
6 years 32 weeks ago
6 years 35 weeks ago
6 years 36 weeks ago
6 years 42 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago