Visio Discussions > ShapeSheet & Smart Shapes

Line Break in ShapeSheet Cells

(1/1)

Lars-Erik:
I know I've seen it somewhere (on this forum even!) but for the live of me I cant find it anymore!

How do I add an enter to a text field, so:

"Hello"&pagebreak&"World!"

--->

Hello
World!

- Lars

Visio Guy:
Hi L-E,

You can create a new line or carriage return or enter or whatever it is called in a ShapeSheet cell like this:

User.txt = "Hello" & CHAR(10) & "World"

or CHAR(13)

Lars-Erik:
Thanks, I'm sure there's something like "insert(line)" aswell. But this will do just fine!

- Lars

Visio Guy:
No, I don't think there is...

Lars-Erik:
I still cant find it and I'm starting to doubt myself  :-X

Anyway, if anyone else has trouble with any char related stuff, I found this page which has all char() listed.

- Lars

Navigation

[0] Message Index

Go to full version