<?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[Daten aus Excel auslesen]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>hab mit der suchfunktion leider noch nichts bruachbares gefunden...<br />
ich hab folgendes Problem....</p>
<p>Ich möchte ersten mal ein Excel-File öffnen, die Anzahl der Datensätze auslesen und dann bestimmte Felder auslesen.</p>
<p>zum schreiben in ein neues Excel file hab ich mal folgendes beispiel verwendet:</p>
<pre><code>// Excel starten
    MyEx = CreateOleObject( &quot;Excel.Application&quot; );
    // Excel sichtbar machen
    //MyEx.OlePropertySet( &quot;Visible&quot; , true );

    // Zugriff auf die Workbooks
    MyWB = MyEx.OlePropertyGet( &quot;Workbooks&quot; );
    // Neues Workbook erstellen
    MyWB.OleFunction(&quot;Add&quot;);

    // Zugriff auf das erste Worksheet
    MyWS = MyWB.OlePropertyGet( &quot;Item&quot; , 1 );
    MyWB = MyWS.OlePropertyGet( &quot;Worksheets&quot; );
    // Dem Worksheet einen Namen geben
    MyWB.OlePropertyGet( &quot;Item&quot; , 1 ).OlePropertySet( &quot;Name&quot;, &quot;Aufträge&quot; );

    // Zugriff auf das erste Worksheet
    MyWS = MyWB.OlePropertyGet( &quot;Item&quot; , 1 );

    // Werte in die Zellen eintragen
    // Überschrift
    // Font nur für Zelle einstellen
    MyWS.OlePropertyGet( &quot;Cells&quot; ).OlePropertyGet( &quot;Item&quot;, 1,1 ).
        OlePropertyGet(&quot;Font&quot;).OlePropertySet( &quot;Bold&quot; , true );
    MyWS.OlePropertyGet( &quot;Cells&quot; ).OlePropertyGet( &quot;Item&quot;, 1,1 ).
        OlePropertyGet(&quot;Font&quot;).OlePropertySet( &quot;Color&quot; , clGreen );        
    MyWS.OlePropertyGet( &quot;Cells&quot; ).OlePropertyGet( &quot;Item&quot;, 1,1 ).
        OlePropertySet( &quot;Value&quot; , &quot;Fertigungsaufträge&quot; );
</code></pre>
<p>Wäre echt super wenn mir jemand helfen könnte.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163226/daten-aus-excel-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 03:37:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163226.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Oct 2006 08:37:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Daten aus Excel auslesen on Fri, 27 Oct 2006 08:37:09 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>hab mit der suchfunktion leider noch nichts bruachbares gefunden...<br />
ich hab folgendes Problem....</p>
<p>Ich möchte ersten mal ein Excel-File öffnen, die Anzahl der Datensätze auslesen und dann bestimmte Felder auslesen.</p>
<p>zum schreiben in ein neues Excel file hab ich mal folgendes beispiel verwendet:</p>
<pre><code>// Excel starten
    MyEx = CreateOleObject( &quot;Excel.Application&quot; );
    // Excel sichtbar machen
    //MyEx.OlePropertySet( &quot;Visible&quot; , true );

    // Zugriff auf die Workbooks
    MyWB = MyEx.OlePropertyGet( &quot;Workbooks&quot; );
    // Neues Workbook erstellen
    MyWB.OleFunction(&quot;Add&quot;);

    // Zugriff auf das erste Worksheet
    MyWS = MyWB.OlePropertyGet( &quot;Item&quot; , 1 );
    MyWB = MyWS.OlePropertyGet( &quot;Worksheets&quot; );
    // Dem Worksheet einen Namen geben
    MyWB.OlePropertyGet( &quot;Item&quot; , 1 ).OlePropertySet( &quot;Name&quot;, &quot;Aufträge&quot; );

    // Zugriff auf das erste Worksheet
    MyWS = MyWB.OlePropertyGet( &quot;Item&quot; , 1 );

    // Werte in die Zellen eintragen
    // Überschrift
    // Font nur für Zelle einstellen
    MyWS.OlePropertyGet( &quot;Cells&quot; ).OlePropertyGet( &quot;Item&quot;, 1,1 ).
        OlePropertyGet(&quot;Font&quot;).OlePropertySet( &quot;Bold&quot; , true );
    MyWS.OlePropertyGet( &quot;Cells&quot; ).OlePropertyGet( &quot;Item&quot;, 1,1 ).
        OlePropertyGet(&quot;Font&quot;).OlePropertySet( &quot;Color&quot; , clGreen );        
    MyWS.OlePropertyGet( &quot;Cells&quot; ).OlePropertyGet( &quot;Item&quot;, 1,1 ).
        OlePropertySet( &quot;Value&quot; , &quot;Fertigungsaufträge&quot; );
</code></pre>
<p>Wäre echt super wenn mir jemand helfen könnte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162400</guid><dc:creator><![CDATA[smeier]]></dc:creator><pubDate>Fri, 27 Oct 2006 08:37:09 GMT</pubDate></item><item><title><![CDATA[Reply to Daten aus Excel auslesen on Fri, 27 Oct 2006 08:50:15 GMT]]></title><description><![CDATA[<p>Was genau Dein Problem ist wissen wir aber immer noch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162414</guid><dc:creator><![CDATA[F98]]></dc:creator><pubDate>Fri, 27 Oct 2006 08:50:15 GMT</pubDate></item><item><title><![CDATA[Reply to Daten aus Excel auslesen on Fri, 27 Oct 2006 08:53:47 GMT]]></title><description><![CDATA[<p>Ich möchte beispielsweise Zelle C19 auslesen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162422</guid><dc:creator><![CDATA[Smeier]]></dc:creator><pubDate>Fri, 27 Oct 2006 08:53:47 GMT</pubDate></item><item><title><![CDATA[Reply to Daten aus Excel auslesen on Fri, 27 Oct 2006 14:36:59 GMT]]></title><description><![CDATA[<p>hier mal ne link weiß nich ob dich das weiterbringt aber mir hats geholfen<br />
--&gt; <a href="http://www.bytesandmore.de/rad/cpp/snipp/sc06022.php" rel="nofollow">http://www.bytesandmore.de/rad/cpp/snipp/sc06022.php</a></p>
<p>Copy&amp;Paste bringts dabei allerdings auch nich man sollte sich da schon mal hinsetzen un sich das auch ordentlich durchlesen :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1162578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1162578</guid><dc:creator><![CDATA[heckticker]]></dc:creator><pubDate>Fri, 27 Oct 2006 14:36:59 GMT</pubDate></item><item><title><![CDATA[Reply to Daten aus Excel auslesen on Mon, 30 Oct 2006 15:41:36 GMT]]></title><description><![CDATA[<p>ok danke für deinen Tip....<br />
habs jetzt auch soweit hinbekommen.</p>
<p>ich hab nur noch ein Problem....<br />
Ich hab eine Spalte die als &quot;Text&quot; formatiert sein muss und eine andere als Datum.</p>
<p>Weiß jemand die Eigenschaften mit denen man die Spalte formatieren kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1164610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1164610</guid><dc:creator><![CDATA[SMeier]]></dc:creator><pubDate>Mon, 30 Oct 2006 15:41:36 GMT</pubDate></item></channel></rss>