How can I combine multiple characters into a single character?

G

Guest

I want to create a new character which is a result of combining multiple
charaters together into a single character. I remember there was a way in
EXCEL that I can do that. However, I can no longer find that instruction from
EXCEL Help anymore.
 
N

Norman Jones

Hi Yukon,

Possibly, you are looking for the concatenate function:

myStr = Concatenate(str1,str2,str3....)
..
The & character can also be used to concatente strings, e.g.:

Sub Test()
Dim sStr As String

Range("A1") = "a": Range("A2") = "b": Range("A3") = "c"

sStr = Range("A1").Value & Range("A2").Value & Range("A3").Value

range("A4").value = sstr
MsgBox sStr

End Sub
 
G

Guest

Norman, Thank you for your suggestion. I am not familiar with VBA. However, I
will try your method. Regards.
Yukon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top