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)
 
Back
Top