Results 1 to 9 of 9

Newline being ignored

Threaded View

  1. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Newline being ignored

    Oh, I forgot to mention that when query is loaded to sheet, you'll have to double click on cell to make CHR(13) active (SQL or most db does not display CHR(13) within field).

    Sample query.
    SELECT Trim(cnam05)+CHR(13)+
    	Trim(cad105)+CHR(13)+
    	Trim(cad205)+CHR(13)+
    	Trim(cad405)+CHR(13)+
    	Trim(cad505) AS 'caddress'
    FROM `C:\Test\Source.xlsx`.`Sheet1$` `Sheet1$`
    It will initially display as...
    0.JPG

    Double click on the cell.
    1.JPG

    Edit: If you want to apply to multiple rows, just copy format of first cell and apply to rest.
    Last edited by CK76; 08-23-2018 at 11:44 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Insering newline at every space
    By mandukes in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-06-2013, 06:18 AM
  2. How to replace space with newline
    By utpalmtbi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-11-2013, 09:13 PM
  3. [SOLVED] newline in a textbox vba
    By Mimouscha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2013, 11:01 AM
  4. Search / Replace with NewLine
    By drew138 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2009, 08:42 PM
  5. newline in cells - inconsistent behavior
    By irwinhorowitz in forum Excel General
    Replies: 0
    Last Post: 04-28-2008, 03:43 PM
  6. Newline inside a Cell
    By anandmr65 in forum Excel General
    Replies: 1
    Last Post: 09-29-2006, 01:31 AM
  7. [SOLVED] Returning newline from a function to a cell
    By Dave Dixson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2006, 08:25 AM
  8. newline in a msgbox
    By greenjellystar in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-10-2005, 12:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1