<?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 More digging suggested that in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Excel-COM-variant/m-p/992559#M101893</link>
    <description>More digging suggested that the following code would implement the "conflict resolution" that I refer to above:


		Call VariantInit(vConflict)
		vConflict%VT = VT_I4
		vConflict%VU%LONG_VAL = xlLocalSessionChanges

		CALL VariantInit(vBSTR3)
		vBSTR3%VT = VT_BSTR
		bstr3 = ConvertStringToBSTR(outFileName)
		vBSTR3%VU%PTR_VAL = bstr3
		call $Workbook_SaveAs(workbook, vBSTR3, ConflictResolution=vConflict)

My reason for wanting to implement this in the first place was to suppress pop-up warnings from Excel.  It turns out, however, that the above does not achieve this.  What is required is a call to the following subroutine:

call $Application_SetDisplayAlerts(excelapp, .false., $STATUS = status)

where excelapp is the pointer to the excel application (e.g. CALL COMCREATEOBJECT ("Excel.Application", excelapp, status) )

All the best,
Justin.</description>
    <pubDate>Thu, 20 Sep 2012 02:35:21 GMT</pubDate>
    <dc:creator>jvandeven</dc:creator>
    <dc:date>2012-09-20T02:35:21Z</dc:date>
    <item>
      <title>Excel COM variant</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Excel-COM-variant/m-p/992558#M101892</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I have been writing to Excel from Fortran for a while now using the $Workbook_SaveAs&amp;nbsp;COM subroutine. &amp;nbsp;I would like to turn off a dialog box from&amp;nbsp;Excel, which pops up each time I ask my program to save a given excel file to a location where an old version of the file already&amp;nbsp;exists. &amp;nbsp;I think that I need to set the ConflictResolution variable to "xlLocalSessionChanges", but do not know how to do this. My code snippit is below:&lt;/P&gt;
&lt;P&gt;CALL VariantInit(vBSTR3)&lt;BR /&gt; vBSTR3%VT = VT_BSTR&lt;BR /&gt; bstr3 = ConvertStringToBSTR(outputFileName)&lt;BR /&gt; vBSTR3%VU%PTR_VAL = bstr3&lt;BR /&gt; Call VariantInit(vConflict)&lt;BR /&gt; vConflict%VT = VT_BSTR&lt;BR /&gt; conflict = ConvertStringToBSTR("xlLocalSessionChanges")&lt;BR /&gt; vConflict%VU%PTR_VAL = conflict&lt;BR /&gt; call $Workbook_SaveAs(workbook, vBSTR3, ConflictResolution=vConflict)&lt;/P&gt;
&lt;P&gt;Many thanks in advance for any advice you may have to give,&lt;/P&gt;
&lt;P&gt;Justin.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2012 03:49:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Excel-COM-variant/m-p/992558#M101892</guid>
      <dc:creator>jvandeven</dc:creator>
      <dc:date>2012-09-18T03:49:05Z</dc:date>
    </item>
    <item>
      <title>More digging suggested that</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Excel-COM-variant/m-p/992559#M101893</link>
      <description>More digging suggested that the following code would implement the "conflict resolution" that I refer to above:


		Call VariantInit(vConflict)
		vConflict%VT = VT_I4
		vConflict%VU%LONG_VAL = xlLocalSessionChanges

		CALL VariantInit(vBSTR3)
		vBSTR3%VT = VT_BSTR
		bstr3 = ConvertStringToBSTR(outFileName)
		vBSTR3%VU%PTR_VAL = bstr3
		call $Workbook_SaveAs(workbook, vBSTR3, ConflictResolution=vConflict)

My reason for wanting to implement this in the first place was to suppress pop-up warnings from Excel.  It turns out, however, that the above does not achieve this.  What is required is a call to the following subroutine:

call $Application_SetDisplayAlerts(excelapp, .false., $STATUS = status)

where excelapp is the pointer to the excel application (e.g. CALL COMCREATEOBJECT ("Excel.Application", excelapp, status) )

All the best,
Justin.</description>
      <pubDate>Thu, 20 Sep 2012 02:35:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Excel-COM-variant/m-p/992559#M101893</guid>
      <dc:creator>jvandeven</dc:creator>
      <dc:date>2012-09-20T02:35:21Z</dc:date>
    </item>
  </channel>
</rss>

