Tom is correct. In the VBA editor, you can use vbCrLf (Carriage Return, Line
Feed) instead of the Chr entries. It is a built-in constant. However, in
calculated textboxes you have to use the Chr commands because they don't
recognize VBA's built-in constants.
Just to add one (slightly peculiar) bit of information - in Windows,
the end of one line and the beginning of another is stored as these
two characters in the order Chr(13) & Chr(10) - a carriage return
followed by a line feed. You need both, and you need them in that
order to (say) put a two-line message into a textbox or label.
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.