Text break

M

mikeFin

Hello!

Here a procedure I have:

- - -
Sub naming(shpObj As Visio.Shape, txt As String)

ActiveWindow.Selection(1).text = ActiveWindow.Selection(1).text & txt

End Sub
- - -

I would like to have line break between both strings.
How could I do that?

I just know that with "vbCr" ...

ActiveWindow.Selection(1).text = ActiveWindow.Selection(1).text & vbCr &txt

.... I get a whitespace between the strings.

Thanks !
 
M

mikeFin

I found the answer...

Chr(10)


(sorry this is a double post, but my previous answer didn't show up)
 

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