Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Remove #VALUE! from ConCat Range Function
How do I remove the #VALUE! from my output file when running the function
below. Some cells in my input file have no data, and I need the output file to reflect this rather than displaying a #VALUE! error. Function ConCatRange(CellBlock As Range) As String Dim Cell As Range Dim sbuf As String For Each Cell In CellBlock If Len(Cell.Text) 0 Then sbuf = sbuf & Cell.Text & Chr(166) sbuf = sbuf & Cell.Text & "|" End If Next ConCatRange = Left(sbuf, Len(sbuf) - 1) End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
howto: concat (x1:x3) | New Users to Excel | |||
Concat Macro help... | Excel Discussion (Misc queries) | |||
Remove blank cells from a range | Excel Discussion (Misc queries) | |||
First letter of names, mi and last name concat, How? | Excel Discussion (Misc queries) | |||
Can I remove blanks from a range without using sort? | Excel Discussion (Misc queries) |