Hard Cr in Macro Message Box.

J

JHB

Hi:

I have a macro that includes a message box in which I wish to have two
lines. I am having a problem figuring out how to make the line break.
Line One&cr&Line two does not work. In fact nothing that I have tried
works!

Your help would be much appreciated.

John Baker
 
F

fifa2001

JHB said:
Hi:

I have a macro that includes a message box in which I wish to have two
lines. I am having a problem figuring out how to make the line break.
Line One&cr&Line two does not work. In fact nothing that I have tried
works!

Your help would be much appreciated.

John Baker
 
J

John Spencer

If that fails then try using Chr(13) & Chr(10) between the two strings.

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
 

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