<?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 Can the excel_enhance macro insert graphics in multiple sheets? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364374#M18761</link>
    <description>&lt;P&gt;I'm trying to place some SAS-genreated sparklines in a multiple-sheet workbook. But the macro fails when inserting graphs in multiple sheets. Here's a small example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code works when all the sheets are set to tom, but fails when trying to put graphs in dick and harry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data graphs;&lt;BR /&gt;&amp;nbsp; input File :$30. Sheet :$8. Cell :$4.;&lt;BR /&gt;&amp;nbsp; length String $60;&lt;BR /&gt;&amp;nbsp; *sheet='Tom';&lt;BR /&gt;&amp;nbsp; string='c:\users\agriffin\g\' !! trim(file) !! '#' !! trim(sheet) !! '!' !! cell;&lt;BR /&gt;cards;&lt;BR /&gt;g8EPM2.5010.png Tom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b3 &lt;BR /&gt;g8EPM2.5020.png Tom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b4 &lt;BR /&gt;g8EPM2.5030.png Dick&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d7 &lt;BR /&gt;g8EPM2.5099.png Dick&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d8 &lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;&amp;nbsp; select string into :placement separated by ', ' from graphs;&lt;BR /&gt;quit;&lt;BR /&gt;%put &amp;amp;placement;&lt;BR /&gt;%excel_enhance(open_workbook=c:\users\agriffin\desktop\test_book.xlsx, insert_image=%quote(&amp;amp;placement), file_format=xlsx);&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13903i723BD97618A9A687/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="g8EPM2.5010.png" title="g8EPM2.5010.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13904i763C90D3211792A4/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="g8EPM2.5020.png" title="g8EPM2.5020.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13905i10F634FFE4AF2E37/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="g8EPM2.5030.png" title="g8EPM2.5030.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13906iB2E4AAC37F158E44/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="g8EPM2.5199.png" title="g8EPM2.5199.png" /&gt;</description>
    <pubDate>Mon, 05 Jun 2017 21:02:20 GMT</pubDate>
    <dc:creator>AdrianGriffin</dc:creator>
    <dc:date>2017-06-05T21:02:20Z</dc:date>
    <item>
      <title>Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364374#M18761</link>
      <description>&lt;P&gt;I'm trying to place some SAS-genreated sparklines in a multiple-sheet workbook. But the macro fails when inserting graphs in multiple sheets. Here's a small example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code works when all the sheets are set to tom, but fails when trying to put graphs in dick and harry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data graphs;&lt;BR /&gt;&amp;nbsp; input File :$30. Sheet :$8. Cell :$4.;&lt;BR /&gt;&amp;nbsp; length String $60;&lt;BR /&gt;&amp;nbsp; *sheet='Tom';&lt;BR /&gt;&amp;nbsp; string='c:\users\agriffin\g\' !! trim(file) !! '#' !! trim(sheet) !! '!' !! cell;&lt;BR /&gt;cards;&lt;BR /&gt;g8EPM2.5010.png Tom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b3 &lt;BR /&gt;g8EPM2.5020.png Tom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b4 &lt;BR /&gt;g8EPM2.5030.png Dick&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d7 &lt;BR /&gt;g8EPM2.5099.png Dick&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d8 &lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;&amp;nbsp; select string into :placement separated by ', ' from graphs;&lt;BR /&gt;quit;&lt;BR /&gt;%put &amp;amp;placement;&lt;BR /&gt;%excel_enhance(open_workbook=c:\users\agriffin\desktop\test_book.xlsx, insert_image=%quote(&amp;amp;placement), file_format=xlsx);&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13903i723BD97618A9A687/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="g8EPM2.5010.png" title="g8EPM2.5010.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13904i763C90D3211792A4/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="g8EPM2.5020.png" title="g8EPM2.5020.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13905i10F634FFE4AF2E37/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="g8EPM2.5030.png" title="g8EPM2.5030.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13906iB2E4AAC37F158E44/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="g8EPM2.5199.png" title="g8EPM2.5199.png" /&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364374#M18761</guid>
      <dc:creator>AdrianGriffin</dc:creator>
      <dc:date>2017-06-05T21:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364389#M18762</link>
      <description>Hi:&lt;BR /&gt;  I'm not sure HOW you are trying to insert the graphics. Are you using ODS? If so, are you using ODS HTML, ODS TAGSETS.EXCELXP or ODS EXCEL inside your %excel_enhance macro program? Or, are you using DDE? Or??? The answer to your question is inside your macro program when you invoke it and whether there are any error messages in the log. This might be something to address with Tech Support, since they could look at the code INSIDE the macro program to try to help you figure out what's going wrong.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 05 Jun 2017 21:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364389#M18762</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-06-05T21:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364390#M18763</link>
      <description>Cynthia:&lt;BR /&gt;It's Chevell's macro, included in the SGF2016_SAS177.ZIP file that I downloaded from your ftp site.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jun 2017 22:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364390#M18763</guid>
      <dc:creator>AdrianGriffin</dc:creator>
      <dc:date>2017-06-05T22:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364391#M18764</link>
      <description>Ah, does it use TAGSETS.TABLEEDITOR? I forgot that as an option? Still if you're not getting error messages in the log probably better to open a track with Tech Support.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 05 Jun 2017 22:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364391#M18764</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-06-05T22:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364397#M18765</link>
      <description>&lt;P&gt;In your macro call you're not specifying the cell, is that intentional? Otherwise how do you specify the multiple destinations?&lt;/P&gt;
&lt;P&gt;Since the macro is demo'd with multiple sheets this should be possible.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 22:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364397#M18765</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-05T22:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364399#M18766</link>
      <description>The cell is specified in the insert_image argument. If you run the code and do a %put &amp;amp;placement, you'll see how the cell and sheet is specified.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jun 2017 22:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364399#M18766</guid>
      <dc:creator>AdrianGriffin</dc:creator>
      <dc:date>2017-06-05T22:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364400#M18767</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30487"&gt;@AdrianGriffin&lt;/a&gt; wrote:&lt;BR /&gt;The cell is specified in the insert_image argument. If you run the code and do a %put &amp;amp;placement, you'll see how the cell and sheet is specified.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;We don't have your data.&lt;/P&gt;
&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run the macro with the options MPRINT and SYMBOLGEN to see details of the code generated.&lt;/P&gt;
&lt;P&gt;You could post the log in a code box opened with the forum {i} icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 22:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364400#M18767</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-05T22:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364403#M18768</link>
      <description>&lt;P&gt;Ok, different question - did the demo from the paper work as expected for you?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 22:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364403#M18768</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-05T22:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364404#M18769</link>
      <description>The excel sheet is just an empty sheet that the macro puts the graphs into. All the workings are in the SAS code that I pasted into my original message. If you don't want to download the spreadsheet, just create an empty workbook with three tabs --tom, dick, and harry.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jun 2017 22:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364404#M18769</guid>
      <dc:creator>AdrianGriffin</dc:creator>
      <dc:date>2017-06-05T22:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can the excel_enhance macro insert graphics in multiple sheets?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364407#M18770</link>
      <description>I didn't try Chevell's example, but my code works as expected when putting all of the graphs in the same sheet. If you uncomment the sheet=tom line, everything will work.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jun 2017 23:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-the-excel-enhance-macro-insert-graphics-in-multiple-sheets/m-p/364407#M18770</guid>
      <dc:creator>AdrianGriffin</dc:creator>
      <dc:date>2017-06-05T23:04:44Z</dc:date>
    </item>
  </channel>
</rss>

