nihar sharma
New Member
- Joined
- Aug 25, 2014
- Messages
- 4
Concatenated values separated with comma. But end of the line needs full stop (.)
What to do in following coding line?
Function CusVlookup(lookupval, lookuprange As Range, indexcol As Long)
'updateby Extendoffice 20151118
Dim x As Range
Dim result As String
result = ""
For Each x In lookuprange
If x = lookupval Then
result = result & "" & x.Offset(0, indexcol - 1) & ", "
End If
Next x
CusVlookup = result
End Function
Thanks in advance
What to do in following coding line?
Function CusVlookup(lookupval, lookuprange As Range, indexcol As Long)
'updateby Extendoffice 20151118
Dim x As Range
Dim result As String
result = ""
For Each x In lookuprange
If x = lookupval Then
result = result & "" & x.Offset(0, indexcol - 1) & ", "
End If
Next x
CusVlookup = result
End Function
Thanks in advance