<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem beim Schreiben in Excel-Datei (war: Hilfe zu Excel)]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe folgende Code von Forum ausprobiert und wollte ich noch was in die Excel Datei schreiben. Schreiben gibt immer Fehlermeldung.Das Problem ist die Datei schreibgeschutz geöffnet ist. Wie kann ich normal offnen?</p>
<pre><code class="language-cpp">Variant Excel; 
     Excel = Variant::CreateObject(&quot;Excel.Application&quot;); 

     Excel.OlePropertyGet(&quot;ActiveWorkBook&quot;); 
     // Excel-Datei öffnen 
        Excel.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;,&quot;C:\\test.xls&quot;); 

     // Sichbar machen 
     Excel.OlePropertySet(&quot;Visible&quot;,1); 

     Variant Sheet; 
     Sheet=Excel.OlePropertyGet(&quot;ActiveSheet&quot;); 
     ShowMessage(Sheet.OlePropertyGet(&quot;Cells&quot;,1,1).OlePropertyGet(&quot;Value&quot;));

 //meine erweiterung ist:
Sheet.OlePropertyGet(&quot;Cells&quot;,8,1).OlePropertySet(&quot;Value&quot;,StringToOleStr(&quot;Hallo&quot;));
</code></pre>
<p>Kann jemand weiterhelfen?</p>
<p>Gruß,<br />
S.Mathi <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
<p><strong>Edit:</strong><br />
Bitte aussagekräftige Überschriften wählen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/96141/problem-beim-schreiben-in-excel-datei-war-hilfe-zu-excel</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 06:20:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/96141.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Dec 2004 20:39:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem beim Schreiben in Excel-Datei (war: Hilfe zu Excel) on Wed, 29 Dec 2004 00:31:06 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich habe folgende Code von Forum ausprobiert und wollte ich noch was in die Excel Datei schreiben. Schreiben gibt immer Fehlermeldung.Das Problem ist die Datei schreibgeschutz geöffnet ist. Wie kann ich normal offnen?</p>
<pre><code class="language-cpp">Variant Excel; 
     Excel = Variant::CreateObject(&quot;Excel.Application&quot;); 

     Excel.OlePropertyGet(&quot;ActiveWorkBook&quot;); 
     // Excel-Datei öffnen 
        Excel.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;,&quot;C:\\test.xls&quot;); 

     // Sichbar machen 
     Excel.OlePropertySet(&quot;Visible&quot;,1); 

     Variant Sheet; 
     Sheet=Excel.OlePropertyGet(&quot;ActiveSheet&quot;); 
     ShowMessage(Sheet.OlePropertyGet(&quot;Cells&quot;,1,1).OlePropertyGet(&quot;Value&quot;));

 //meine erweiterung ist:
Sheet.OlePropertyGet(&quot;Cells&quot;,8,1).OlePropertySet(&quot;Value&quot;,StringToOleStr(&quot;Hallo&quot;));
</code></pre>
<p>Kann jemand weiterhelfen?</p>
<p>Gruß,<br />
S.Mathi <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
<p><strong>Edit:</strong><br />
Bitte aussagekräftige Überschriften wählen. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/682248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682248</guid><dc:creator><![CDATA[smathi]]></dc:creator><pubDate>Wed, 29 Dec 2004 00:31:06 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim Schreiben in Excel-Datei (war: Hilfe zu Excel) on Wed, 29 Dec 2004 08:21:26 GMT]]></title><description><![CDATA[<p>bei mir funktioniert dein Code einwandfrei,<br />
schau einfach mal, ob die Datei schreibgeschützt ist</p>
<p>noch ein Tip: falls Excel schon offen ist solltest du folgendes nehmen</p>
<pre><code>try
	{
	Excel = GetActiveOleObject(&quot;Excel.Application&quot;);
	}
catch(...)
	{
	Excel = CreateOleObject(&quot;Excel.Application&quot;);
	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/682402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682402</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 29 Dec 2004 08:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim Schreiben in Excel-Datei (war: Hilfe zu Excel) on Thu, 30 Dec 2004 08:19:22 GMT]]></title><description><![CDATA[<p>Linnea schrieb:</p>
<blockquote>
<p>&lt;Edit: Zitate bitte auf das Notwendigste beschränken. Danke!&gt;</p>
</blockquote>
<p>Hi,</p>
<p>Ich habe schon nach &quot;Datei Schreibschutz&quot; kontrolliert. Die Datei war ohne Schreibschutz. Ich werde gleich dein Verschlag ausprobieren. :xmas2:</p>
<p>Bis bald.</p>
<p>Gruß<br />
S.Mathi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/682799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682799</guid><dc:creator><![CDATA[smathi]]></dc:creator><pubDate>Thu, 30 Dec 2004 08:19:22 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim Schreiben in Excel-Datei (war: Hilfe zu Excel) on Wed, 29 Dec 2004 18:51:53 GMT]]></title><description><![CDATA[<p>Hallo Linnea,</p>
<p>nach der Änerung wie Sie vorgeschlagen haben, funktionert es.</p>
<p>Gruß<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> S.Mathi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/682831</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682831</guid><dc:creator><![CDATA[smathi]]></dc:creator><pubDate>Wed, 29 Dec 2004 18:51:53 GMT</pubDate></item></channel></rss>