<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Carriage Return Within a Cell in Microsoft Excel in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Carriage-Return-Within-a-Cell-in-Microsoft-Excel/m-p/2312578#M83518</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for sharing this tip with us on Community.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2022 08:04:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-14T08:04:26Z</dc:date>
    <item>
      <title>Carriage Return Within a Cell in Microsoft Excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Carriage-Return-Within-a-Cell-in-Microsoft-Excel/m-p/2312577#M83517</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿Hi community, I would like to share with you a tip, how to create excel files with a carriage return (or line break) in a cell.&lt;/P&gt;&lt;P&gt;you can get around it with a bit of Java String manipulation:&lt;/P&gt;&lt;P&gt;"1st line... "+&lt;B&gt;Code&lt;/B&gt;+"2nd line…"&lt;/P&gt;&lt;P&gt;&lt;B&gt;Code&lt;/B&gt; = &lt;B&gt;Character.toString ((char) 10)&amp;nbsp;&lt;/B&gt;or&lt;B&gt;&amp;nbsp;“\012”&amp;nbsp;&lt;/B&gt;or&lt;B&gt;&amp;nbsp;“\n”…&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The code I gave you, will provide the carriage return where you want it, but you will need to enable the "&lt;B&gt;Wrap text&lt;/B&gt;" in the file using VBA&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SryyiAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152161i9AE22ACE84E30377/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SryyiAAB.png" alt="0695b00000SryyiAAB.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000SrzjFAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143202i57E5972D83DFB5A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000SrzjFAAR.png" alt="0695b00000SrzjFAAR.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Srz1IAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140634i5DD0428407585364/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Srz1IAAR.png" alt="0695b00000Srz1IAAR.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Srz2BAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142532i8571DE7F65015DB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Srz2BAAR.png" alt="0695b00000Srz2BAAR.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Srz3sAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142572i6B491F63A86676FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Srz3sAAB.png" alt="0695b00000Srz3sAAB.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Srz5FAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153488i6C4F032E20BBE254/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Srz5FAAR.png" alt="0695b00000Srz5FAAR.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Srz7BAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141070i1DC88C95F3FD621F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Srz7BAAR.png" alt="0695b00000Srz7BAAR.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Srz7VAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152387i8C47016D1028F402/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Srz7VAAR.png" alt="0695b00000Srz7VAAR.png" /&gt;&lt;/span&gt;&lt;B&gt;************tFixedFlowInput_2************&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Dim objXL&lt;/P&gt;&lt;P&gt;SET objXL = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;WITH objXL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.Workbooks.Open("D:/test/out/Carriage_Return_in_cell.xlsx")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.Worksheets("Users").Range("A1:A15").WrapText = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.activeWorkbook.save&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;.activeWorkbook.close&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;END WITH&lt;/P&gt;&lt;P&gt;SET objXL = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;**************tJava_1*************&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Runtime.getRuntime().exec("cmd /c start +((String)globalMap.get("tFileOutputRaw_1_FILENAME_PATH")));&lt;/P&gt;&lt;P&gt;TimeUnit.SECONDS.sleep(1);&lt;/P&gt;&lt;P&gt;File file = new File(((String)globalMap.get("tFileOutputRaw_1_FILENAME_PATH")));&lt;/P&gt;&lt;P&gt;file.deleteOnExit();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;NB. &lt;/B&gt;On Debian/Ubuntu you can install as follows:&lt;/P&gt;&lt;P&gt;$ sudo apt-get install wine &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;$ &lt;/P&gt;&lt;P&gt;&lt;B&gt;To run&lt;/B&gt;&amp;nbsp;from command line:&lt;/P&gt;&lt;P&gt;$ wine cscript some-script.vbs&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;$ wine&lt;/P&gt;&lt;P&gt;wscript some-script.vbs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Happy learning,&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Kind regards,&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;span class="lia-unicode-emoji" title=":face_with_medical_mask:"&gt;😷&lt;/span&gt;19.&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Carriage-Return-Within-a-Cell-in-Microsoft-Excel/m-p/2312577#M83517</guid>
      <dc:creator>InfoCraft</dc:creator>
      <dc:date>2024-11-15T22:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage Return Within a Cell in Microsoft Excel</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Carriage-Return-Within-a-Cell-in-Microsoft-Excel/m-p/2312578#M83518</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for sharing this tip with us on Community.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 08:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Carriage-Return-Within-a-Cell-in-Microsoft-Excel/m-p/2312578#M83518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-14T08:04:26Z</dc:date>
    </item>
  </channel>
</rss>

