there is a function listed in 2007 VBA called Join
a macro function like
i thought would allow me to enter
to give me a text field with the values in A through C separated by a space
what am I doing wrong?
a macro function like
Code:
Function combine(XXX As Range)
combine = Join(XXX)
End Function
i thought would allow me to enter
Code:
=combine(A1:C1)
to give me a text field with the values in A through C separated by a space
Excel Workbook | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | A | B | C | ||
2 | |||||
3 | #VALUE! | ||||
Sheet5 |
what am I doing wrong?