Sarathi_citi
New Member
Hi
I am writing a user defined function to concatenate the text present in the selected Range.
I am facing issues in identifying the input parameter type for the UDF.
The user will use UDF as formula in a cell as shown below
=Concat(A1:A4,A7:A12,B4:B9, ":")
ideally i am trying to concatenate the text present in each of the cells present in the ranges with the Seperator given.
-------
I am unable to identify what datatype should be used in the UDF
***Function Concat(Input As string,Seperator as String) As String***
for the highlighted text in the Concat formula.
Note: the number of ranges the user can select in the concat formula can vary.
Could someone please give me an idea ?
Thanks
Sarathi
I am writing a user defined function to concatenate the text present in the selected Range.
I am facing issues in identifying the input parameter type for the UDF.
The user will use UDF as formula in a cell as shown below
=Concat(A1:A4,A7:A12,B4:B9, ":")
ideally i am trying to concatenate the text present in each of the cells present in the ranges with the Seperator given.
-------
Code:
Function Concat(Input As string,Seperator as String) As String
'My logic to concatenate the text with seperator goes here
End Function
I am unable to identify what datatype should be used in the UDF
***Function Concat(Input As string,Seperator as String) As String***
for the highlighted text in the Concat formula.
Note: the number of ranges the user can select in the concat formula can vary.
Could someone please give me an idea ?
Thanks
Sarathi