Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks all for your help
Both these get me what i'm after cheers "Gord Dibben" wrote: Just a head's up. If user has blank cells in the range, your code will produce extra de-limiters. Try this revision. Function ConCatRange(CellBlock As Range) As String 'for non-contiguous cells =ccr((a1:a10,c4,c6,e1:e5)) Dim Cell As Range Dim sbuf As String For Each Cell In CellBlock If Len(Cell.text) 0 Then sbuf = sbuf & Cell.text & "*|" Next ConCatRange = Left(sbuf, Len(sbuf) - 1) End Function Gord Dibben MS Excel MVP On Wed, 23 Sep 2009 09:10:02 -0700, Gary''s Student wrote: Function RowThem(r As Range) As String RowThem = "" For Each rr In r If RowThem = "" Then RowThem = rr.Value Else RowThem = RowThem & "|" & rr.Value End If Next End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dependent Dropdown List - Not Easy! | Excel Worksheet Functions | |||
Turning column contents into text list separated by a comma | Excel Discussion (Misc queries) | |||
Deleting or 'turning off' a list | Excel Discussion (Misc queries) | |||
Macro turning colums w/headers into list on multiple sheets | Excel Programming | |||
An easy one: Help with some VB funct about list and filter | Excel Programming |