<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>No Money No Honey &#187; EXCEL</title>
	<atom:link href="http://blog.infinity.idv.tw/index.php/category/delphi/excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.infinity.idv.tw</link>
	<description>Just Another Beginning</description>
	<lastBuildDate>Sat, 28 Jan 2012 18:25:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DELPHI寫入EXCEL時，寫入速度緩慢問題</title>
		<link>http://blog.infinity.idv.tw/index.php/2010/07/12/delphi%e5%af%ab%e5%85%a5excel%e6%99%82%ef%bc%8c%e5%af%ab%e5%85%a5%e9%80%9f%e5%ba%a6%e7%b7%a9%e6%85%a2%e5%95%8f%e9%a1%8c/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2010/07/12/delphi%e5%af%ab%e5%85%a5excel%e6%99%82%ef%bc%8c%e5%af%ab%e5%85%a5%e9%80%9f%e5%ba%a6%e7%b7%a9%e6%85%a2%e5%95%8f%e9%a1%8c/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 07:46:11 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[DELPHI]]></category>
		<category><![CDATA[EXCEL]]></category>
		<category><![CDATA[DELPHI EXCEL 寫入資料 速度緩慢 寫入緩慢]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2010/07/12/delphi%e5%af%ab%e5%85%a5excel%e6%99%82%ef%bc%8c%e5%af%ab%e5%85%a5%e9%80%9f%e5%ba%a6%e7%b7%a9%e6%85%a2%e5%95%8f%e9%a1%8c/</guid>
		<description><![CDATA[<p>最近在修改使用者提出 EXCEL 報表欄位，發現有幾支 procedure 轉出 EXCEL 的速度非常龜，而這幾支 procedure 是前輩所留下的產物，跟自己最近寫的轉 EXCEL 報表速度上差很多，以為是卡在SQL查詢，如果查詢條件KEY值給不齊全，有可能因為資料過多，查詢變很慢，但是測試後應該不是SQL查詢的問題，再對照前輩與自己的程式，感覺不出差異，最後看到 DELPHI 內設定EXCEL時前面通常會有一些基本設定，發現了這幾支程式都有設定列印範圍，姑且註解掉試試看，果然&#8230;&#8230;&#8230;&#8230;&#8230;兇手就是它！</p>
<p>PageSetup.PrintArea := &#8216;A:R&#8217;;&#160; //設定列印範圍</p>
<p>建議把它移到資料轉完後，最後在給上這個參數就好了。</p>
]]></description>
			<content:encoded><![CDATA[<p>最近在修改使用者提出 EXCEL 報表欄位，發現有幾支 procedure 轉出 EXCEL 的速度非常龜，而這幾支 procedure 是前輩所留下的產物，跟自己最近寫的轉 EXCEL 報表速度上差很多，以為是卡在SQL查詢，如果查詢條件KEY值給不齊全，有可能因為資料過多，查詢變很慢，但是測試後應該不是SQL查詢的問題，再對照前輩與自己的程式，感覺不出差異，最後看到 DELPHI 內設定EXCEL時前面通常會有一些基本設定，發現了這幾支程式都有設定列印範圍，姑且註解掉試試看，果然&#8230;&#8230;&#8230;&#8230;&#8230;兇手就是它！</p>
<p>PageSetup.PrintArea := &#8216;A:R&#8217;;&#160; //設定列印範圍</p>
<p>建議把它移到資料轉完後，最後在給上這個參數就好了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2010/07/12/delphi%e5%af%ab%e5%85%a5excel%e6%99%82%ef%bc%8c%e5%af%ab%e5%85%a5%e9%80%9f%e5%ba%a6%e7%b7%a9%e6%85%a2%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EXCEL儲存格的IF用法</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/12/18/excel%e5%84%b2%e5%ad%98%e6%a0%bc%e7%9a%84if%e7%94%a8%e6%b3%95/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/12/18/excel%e5%84%b2%e5%ad%98%e6%a0%bc%e7%9a%84if%e7%94%a8%e6%b3%95/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 10:55:08 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[EXCEL]]></category>
		<category><![CDATA[IF]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/12/18/excel%e5%84%b2%e5%ad%98%e6%a0%bc%e7%9a%84if%e7%94%a8%e6%b3%95/</guid>
		<description><![CDATA[<p>IF(B2=&#34;&#34;,&#34;&#34;,&#34;123&#34;)</p>
<p>表示 B2如果等於空白，則目前所在的儲存格帶入空白，否則帶入123</p>
]]></description>
			<content:encoded><![CDATA[<p>IF(B2=&quot;&quot;,&quot;&quot;,&quot;123&quot;)</p>
<p>表示 B2如果等於空白，則目前所在的儲存格帶入空白，否則帶入123</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/12/18/excel%e5%84%b2%e5%ad%98%e6%a0%bc%e7%9a%84if%e7%94%a8%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>簡單公式實現Excel自動編號</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/12/18/%e7%b0%a1%e5%96%ae%e5%85%ac%e5%bc%8f%e5%af%a6%e7%8f%beexcel%e8%87%aa%e5%8b%95%e7%b7%a8%e8%99%9f/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/12/18/%e7%b0%a1%e5%96%ae%e5%85%ac%e5%bc%8f%e5%af%a6%e7%8f%beexcel%e8%87%aa%e5%8b%95%e7%b7%a8%e8%99%9f/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 10:35:45 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[EXCEL]]></category>
		<category><![CDATA[自動編號]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/12/18/%e7%b0%a1%e5%96%ae%e5%85%ac%e5%bc%8f%e5%af%a6%e7%8f%beexcel%e8%87%aa%e5%8b%95%e7%b7%a8%e8%99%9f/</guid>
		<description><![CDATA[<p>滿實用的!</p>
<p>&#160;</p>
<p>文章出處：http://community.kingdee.com/pages/checksun/blog/archive/2008/08/12/313745.aspx</p>
<p>&#160;&#160;&#160; 很多時候都需要對Excel中的數據加一列序號，但由於數據的添加、刪除，導致經常要重新填充序號，非常不便，在網上看到用簡單公式即可實現自動編號，非常方便。</p>
<p>&#160;&#160;&#160; 我們知道，在Word中有個自動編號的功能，在Excel中我們可以使用函數來實現這個功能。</p>
<p>&#160;&#160;&#160; 點擊A2單元格輸入公式：=IF(B2=&#34;&#34;,&#34;&#34;,COUNTA($B$2:B2))，然後把鼠標移到A2單元格的右下方，鼠標就會變成十字形狀，按住拖拽填充到A列下面的單元格中，這樣我們在B列輸入內容時，A列中就會自動輸入序號了.&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; 我們在打印的時候，有時需要把部分行隱藏起來進行打印，結果卻會發現序號不連續了，這時就需要讓序號調整為連續的。    </p>
<p>&#160;&#160;&#160; 在A2單元格輸入公式：=IF(B2=&#34;&#34;,&#34;&#34;,SUBTOTAL(103,$B$2:B2))，然後拖拽到A列下面的單元格，這樣就會自動調整序號了。</p>
]]></description>
			<content:encoded><![CDATA[<p>滿實用的!</p>
<p>&#160;</p>
<p>文章出處：<a title="http://community.kingdee.com/pages/checksun/blog/archive/2008/08/12/313745.aspx" href="http://community.kingdee.com/pages/checksun/blog/archive/2008/08/12/313745.aspx">http://community.kingdee.com/pages/checksun/blog/archive/2008/08/12/313745.aspx</a></p>
<p>&#160;&#160;&#160; 很多時候都需要對Excel中的數據加一列序號，但由於數據的添加、刪除，導致經常要重新填充序號，非常不便，在網上看到用簡單公式即可實現自動編號，非常方便。</p>
<p>&#160;&#160;&#160; 我們知道，在Word中有個自動編號的功能，在Excel中我們可以使用函數來實現這個功能。</p>
<p>&#160;&#160;&#160; 點擊A2單元格輸入公式：=IF(B2=&quot;&quot;,&quot;&quot;,COUNTA($B$2:B2))，然後把鼠標移到A2單元格的右下方，鼠標就會變成十字形狀，按住拖拽填充到A列下面的單元格中，這樣我們在B列輸入內容時，A列中就會自動輸入序號了.&#160;&#160;&#160; <br />&#160;&#160;&#160; <br />&#160;&#160;&#160; 我們在打印的時候，有時需要把部分行隱藏起來進行打印，結果卻會發現序號不連續了，這時就需要讓序號調整為連續的。    </p>
<p>&#160;&#160;&#160; 在A2單元格輸入公式：=IF(B2=&quot;&quot;,&quot;&quot;,SUBTOTAL(103,$B$2:B2))，然後拖拽到A列下面的單元格，這樣就會自動調整序號了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/12/18/%e7%b0%a1%e5%96%ae%e5%85%ac%e5%bc%8f%e5%af%a6%e7%8f%beexcel%e8%87%aa%e5%8b%95%e7%b7%a8%e8%99%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>何為樞紐分析表?</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/12/08/%e4%bd%95%e7%82%ba%e6%a8%9e%e7%b4%90%e5%88%86%e6%9e%90%e8%a1%a8/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/12/08/%e4%bd%95%e7%82%ba%e6%a8%9e%e7%b4%90%e5%88%86%e6%9e%90%e8%a1%a8/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:16:18 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[EXCEL]]></category>
		<category><![CDATA[動畫教學]]></category>
		<category><![CDATA[樞紐分析表]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/12/08/%e4%bd%95%e7%82%ba%e6%a8%9e%e7%b4%90%e5%88%86%e6%9e%90%e8%a1%a8/</guid>
		<description><![CDATA[<p>何為樞紐分析表?它最主要的功用何在呢?簡單的說，就是把基本的資料區分整理好後，透過樞紐分析表來達成各個項目的顯示與最後加總的結果，並可快速切換並得到所要知道的資料列表。</p>
<p>還是不懂嗎?那看看下面動態基楚教學吧，應該就會懂了。</p>
<p>http://www.fjweb.fju.edu.tw/tsaur/AVI/Excel/014Data/Excel-01410PivotTable/Excel%E7%9A%84%E6%A8%9E%E7%B4%90%E5%88%86%E6%9E%90%E8%A1%A8.htm</p>
]]></description>
			<content:encoded><![CDATA[<p>何為樞紐分析表?它最主要的功用何在呢?簡單的說，就是把基本的資料區分整理好後，透過樞紐分析表來達成各個項目的顯示與最後加總的結果，並可快速切換並得到所要知道的資料列表。</p>
<p>還是不懂嗎?那看看下面動態基楚教學吧，應該就會懂了。</p>
<p><a title="http://www.fjweb.fju.edu.tw/tsaur/AVI/Excel/014Data/Excel-01410PivotTable/Excel%E7%9A%84%E6%A8%9E%E7%B4%90%E5%88%86%E6%9E%90%E8%A1%A8.htm" href="http://www.fjweb.fju.edu.tw/tsaur/AVI/Excel/014Data/Excel-01410PivotTable/Excel%E7%9A%84%E6%A8%9E%E7%B4%90%E5%88%86%E6%9E%90%E8%A1%A8.htm">http://www.fjweb.fju.edu.tw/tsaur/AVI/Excel/014Data/Excel-01410PivotTable/Excel%E7%9A%84%E6%A8%9E%E7%B4%90%E5%88%86%E6%9E%90%E8%A1%A8.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/12/08/%e4%bd%95%e7%82%ba%e6%a8%9e%e7%b4%90%e5%88%86%e6%9e%90%e8%a1%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用DELPHI列印EXCEL所有sheet文件</title>
		<link>http://blog.infinity.idv.tw/index.php/2009/11/03/%e4%bd%bf%e7%94%a8delphi%e5%88%97%e5%8d%b0excel%e6%89%80%e6%9c%89sheet%e6%96%87%e4%bb%b6/</link>
		<comments>http://blog.infinity.idv.tw/index.php/2009/11/03/%e4%bd%bf%e7%94%a8delphi%e5%88%97%e5%8d%b0excel%e6%89%80%e6%9c%89sheet%e6%96%87%e4%bb%b6/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 03:55:25 +0000</pubDate>
		<dc:creator>Roger Lin</dc:creator>
				<category><![CDATA[EXCEL]]></category>
		<category><![CDATA[DELPHI]]></category>
		<category><![CDATA[sheet]]></category>
		<category><![CDATA[列印]]></category>

		<guid isPermaLink="false">http://blog.infinity.idv.tw/index.php/2009/11/03/%e4%bd%bf%e7%94%a8delphi%e5%88%97%e5%8d%b0excel%e6%89%80%e6%9c%89sheet%e6%96%87%e4%bb%b6/</guid>
		<description><![CDATA[<p>程式Source    </p>
<p>然後重點在於我給了兩個變數     var    &#160;&#160;&#160; ExcelApp,Excelall : Variant;    </p>
<p>ExcelApp:=CreateOleObject(&#8217;Excel.Application&#8217;); &#60;==創建EXCEL應用程式    ExcelApp.Workbooks.Open(tmpFilename); &#60;==正常開啟檔案    Excelall := ExcelApp.Workbooks.Open(tmpFilename);//可列印全部SHEET &#60;==把開啟檔案的狀態給Excelall    </p>
<p>最後再使用 Excelall.printout 即可全部的Sheet都列印出來，關閉Excel還是要用ExcelApp.quit來關，而不是 Excelall.quit。    </p>
<p>列印作用中的sheet則用 ==&#62; ExcelApp.ActiveSheet.PrintOut 即可    </p>
<p>要預覽可帶參數 ==&#62; Excelall.printout(Copies:=1, Collate:=True, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.infinity.idv.tw/application/excel列印範例.rar">程式Source</a>    </p>
<p>然後重點在於我給了兩個變數     <br />var    <br />&#160;&#160;&#160; ExcelApp,Excelall : Variant;    </p>
<p>ExcelApp:=CreateOleObject(&#8217;Excel.Application&#8217;); &lt;==創建EXCEL應用程式    <br />ExcelApp.Workbooks.Open(tmpFilename); &lt;==正常開啟檔案    <br />Excelall := ExcelApp.Workbooks.Open(tmpFilename);//可列印全部SHEET &lt;==把開啟檔案的狀態給Excelall    </p>
<p>最後再使用 Excelall.printout 即可全部的Sheet都列印出來，關閉Excel還是要用ExcelApp.quit來關，而不是 Excelall.quit。    </p>
<p>列印作用中的sheet則用 ==&gt; ExcelApp.ActiveSheet.PrintOut 即可    </p>
<p>要預覽可帶參數 ==&gt; Excelall.printout(Copies:=1, Collate:=True, Preview:=True) 即可預覽</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.infinity.idv.tw/index.php/2009/11/03/%e4%bd%bf%e7%94%a8delphi%e5%88%97%e5%8d%b0excel%e6%89%80%e6%9c%89sheet%e6%96%87%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

