Next line in header

  • Thread starter Thread starter Lee
  • Start date Start date
L

Lee

I am adding headers to a worksheet using VBAs. Users are
prompted to enter the client's name in an input box, and
this info is added to the rest of the header. My problem
is that I want part of the information to be on a second
line in the header. I cannot figure out how to add a line
return in VBA. Can someone tell me how to do this?

Thanks, Lee
 
Lee,

Use vbCrLF constant

x= "something" & vbCrLf & " else"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Back
Top