<?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: Deleting formats in an Excel worksheet. in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8802#M322</link>
    <description>&amp;gt; With  &lt;B&gt;put '[format.number("#,##0")]';&lt;/B&gt; I was&lt;BR /&gt;
&amp;gt; expecting to have the value &lt;B&gt;12798&lt;/B&gt; shown as&lt;BR /&gt;
&amp;gt; &lt;B&gt;12 798&lt;/B&gt;. Instead I got &lt;B&gt;12798,0&lt;/B&gt;. (I'm&lt;BR /&gt;
&amp;gt; living in Europe, I want an empty space between 2 and&lt;BR /&gt;
&amp;gt; 7.)&lt;BR /&gt;
&lt;BR /&gt;
I used this to produce the format you want.&lt;BR /&gt;
put '[format.number("# ##0")]';</description>
    <pubDate>Fri, 20 Mar 2009 13:39:38 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-03-20T13:39:38Z</dc:date>
    <item>
      <title>Deleting formats in an Excel worksheet.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8799#M319</link>
      <description>I want to transfer values, with DDE, from a SAS table to a formatted Excel worksheet. I want to do some new formatting &lt;B&gt;with code&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
My values are transferred, but the format doesn't change.&lt;BR /&gt;
&lt;BR /&gt;
Shouldn't the existing format be overwritten with the new format I am coding, or do I first have to use DELETE.FORMAT?&lt;BR /&gt;
&lt;BR /&gt;
Current area: A1:E20.&lt;BR /&gt;
&lt;BR /&gt;
My formatting code:&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
put '[select("r1c1:r20c5")]';&lt;BR /&gt;
put '[alignment(4)]'; /* Meant to be right justified. */&lt;BR /&gt;
put '[format.number("#,##0")]';&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
I also tried with &lt;B&gt;put '[delete.format]';&lt;/B&gt;, placed before the second code line above. I didn't work either.&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Susan</description>
      <pubDate>Fri, 20 Mar 2009 10:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8799#M319</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-20T10:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting formats in an Excel worksheet.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8800#M320</link>
      <description>I copied your statements to my "write with DDE and do formatting" test program and it work as I expected.  If my numbers are less that 1000 nothing looks different except there are no decimal places printed.&lt;BR /&gt;
&lt;BR /&gt;
You can confirm the function by examination of the menu Format Cells&amp;gt;Number  &lt;BR /&gt;
&lt;BR /&gt;
I don't think &lt;B&gt;delete.format&lt;/B&gt; does what you what.  If you want to remove formatting from cell(s) use&lt;B&gt; CLEAR(2)&lt;/B&gt;</description>
      <pubDate>Fri, 20 Mar 2009 11:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8800#M320</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-03-20T11:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting formats in an Excel worksheet.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8801#M321</link>
      <description>With  &lt;B&gt;put '[format.number("#,##0")]';&lt;/B&gt; I was expecting to have the value &lt;B&gt;12798&lt;/B&gt; shown as &lt;B&gt;12 798&lt;/B&gt;. Instead I got &lt;B&gt;12798,0&lt;/B&gt;. (I'm living in Europe, I want an empty space between 2 and 7.)&lt;BR /&gt;
&lt;BR /&gt;
If I do it manually in an Excel sheet and record a macro, then the macro text contains the format "#,##0".&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;And the alignment(4) didn't have any effect. I can't understand what's wrong!&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Another problem: If I have transferred 0 (zero) to cells that I want empty( I have reasons to do like that) and then want blank signs in those cells I tried with &lt;BR /&gt;
&lt;BR /&gt;
put '[select("r1c1:r1c5")]';&lt;BR /&gt;
put ' ' ;&lt;BR /&gt;
&lt;BR /&gt;
It didn't work. How can it be done?&lt;BR /&gt;
&lt;BR /&gt;
In an another, earlier answer you had some code with "link command" twice, which was for starting Excel. It shouldn't be necessary to start Excel more than once, or have missed something fundamental?&lt;BR /&gt;
&lt;BR /&gt;
Susan</description>
      <pubDate>Fri, 20 Mar 2009 13:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8801#M321</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-20T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting formats in an Excel worksheet.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8802#M322</link>
      <description>&amp;gt; With  &lt;B&gt;put '[format.number("#,##0")]';&lt;/B&gt; I was&lt;BR /&gt;
&amp;gt; expecting to have the value &lt;B&gt;12798&lt;/B&gt; shown as&lt;BR /&gt;
&amp;gt; &lt;B&gt;12 798&lt;/B&gt;. Instead I got &lt;B&gt;12798,0&lt;/B&gt;. (I'm&lt;BR /&gt;
&amp;gt; living in Europe, I want an empty space between 2 and&lt;BR /&gt;
&amp;gt; 7.)&lt;BR /&gt;
&lt;BR /&gt;
I used this to produce the format you want.&lt;BR /&gt;
put '[format.number("# ##0")]';</description>
      <pubDate>Fri, 20 Mar 2009 13:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Deleting-formats-in-an-Excel-worksheet/m-p/8802#M322</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-03-20T13:39:38Z</dc:date>
    </item>
  </channel>
</rss>

