ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Jump to next line in box... (https://www.excelbanter.com/excel-programming/336281-jump-next-line-box.html)

Thomas

Jump to next line in box...
 
I have a database of people, that when you search for one, it finds the
person and displays the info. I wish to be able to add a "return" (next line)
for each note in the note text box. How do I do this?


Ex.

CustInfo.Notes = Worksheets("CustomerDatabase").Cells(RefCountx, 30) &
NEXTLINE??? & Worksheets("CustomerDatabase").Cells(RefCountx, 31)

thanks Ahead of time,
Thomas

Harald Staff

Jump to next line in box...
 
Hi Thomas

Try
VbNewLine

HTH. Best wishes Harald

"thomas" skrev i melding
...
I have a database of people, that when you search for one, it finds the
person and displays the info. I wish to be able to add a "return" (next

line)
for each note in the note text box. How do I do this?


Ex.

CustInfo.Notes = Worksheets("CustomerDatabase").Cells(RefCountx, 30) &
NEXTLINE??? & Worksheets("CustomerDatabase").Cells(RefCountx, 31)

thanks Ahead of time,
Thomas




Tom Ogilvy

Jump to next line in box...
 
chr(10)


CustInfo.Notes = Worksheets("CustomerDatabase").Cells(RefCountx, 30) & _
chr(10) & Worksheets("CustomerDatabase").Cells(RefCountx, 31)

--
Regards,
Tom Ogilvy


"thomas" wrote in message
...
I have a database of people, that when you search for one, it finds the
person and displays the info. I wish to be able to add a "return" (next

line)
for each note in the note text box. How do I do this?


Ex.

CustInfo.Notes = Worksheets("CustomerDatabase").Cells(RefCountx, 30) &
NEXTLINE??? & Worksheets("CustomerDatabase").Cells(RefCountx, 31)

thanks Ahead of time,
Thomas




Thomas

Jump to next line in box...
 
Your cool! Still learning the in's and out's of VB

-thomas

"Harald Staff" wrote:

Hi Thomas

Try
VbNewLine

HTH. Best wishes Harald

"thomas" skrev i melding
...
I have a database of people, that when you search for one, it finds the
person and displays the info. I wish to be able to add a "return" (next

line)
for each note in the note text box. How do I do this?


Ex.

CustInfo.Notes = Worksheets("CustomerDatabase").Cells(RefCountx, 30) &
NEXTLINE??? & Worksheets("CustomerDatabase").Cells(RefCountx, 31)

thanks Ahead of time,
Thomas






All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com