随笔分类 -  Excel Office

NPOI 读取excel到DataTable 读取隐藏列 读取公式列
摘要:处理思路:1.打开excel 用NPOI进行读取;2.读取第一个Sheet;读取过程中:a.先设置相应列 不隐藏b.读取Cell时 先判断是否的包含公式相应代码如下:public static DataTable ReadDataFromExcelByNPOI(){ DataTable dt ... 阅读全文

posted @ 2015-12-25 17:13 freeliver54 阅读(4011) 评论(0) 推荐(0)

[转]excel set drop-down values based on vlookup
摘要:本文转自:http://stackoverflow.com/questions/10657811/set-drop-down-values-based-on-vlookup问:I have a worksheet UserEntry with 2 columns, Block and Address... 阅读全文

posted @ 2015-12-24 17:06 freeliver54 阅读(259) 评论(0) 推荐(0)

[转]比NPOI更討喜的Excel元件-EPPlus
摘要:本文转自:http://blog.darkthread.net/post-2012-05-12-epplus.aspx前陣子發表 【潛盾機】將檔案結構匯成Excel文件,從網友佑翔的留言(特此感謝),認識了一顆被我錯過的l好元件 -- EPPlus!NPOI源於POI,在很多介面設計上,帶點Java... 阅读全文

posted @ 2015-12-24 14:07 freeliver54 阅读(464) 评论(0) 推荐(0)

excel vba 当cell的值变化时 进行判断操作
摘要:示例效果:-----------在excel的sheet1中,当A列的值 大于100时 ,其对应B列背景显示红色,C列显示"有数据"否则,B列背景色正常,C列清空相应的数据操作步骤----------1.新建Excel2.选择菜单”开发工具“ -》 ”Visual Basic“ 打开相应的VBA代码... 阅读全文

posted @ 2015-12-24 10:55 freeliver54 阅读(4585) 评论(0) 推荐(0)

[转]Worksheet.Change Event (Excel)
摘要:本文转自:https://msdn.microsoft.com/en-us/library/office/ff839775.aspx#AboutContributorExampleThe following code example changes the color of changed cell... 阅读全文

posted @ 2015-12-24 10:42 freeliver54 阅读(403) 评论(0) 推荐(0)

[转]EXCEL如何使用动态公式
摘要:本文转自:http://tech.cncms.com/ruanjian/office/excel/95440.html也许大家可能还不知道Excel中的动态公式是什么,所谓的动态公式,不是普通的公式,而是更好灵活的公式的使用方法。下面就给你举例来说明。一、构造动态公式在EXCEL某个工作表中,如果随... 阅读全文

posted @ 2015-12-23 11:38 freeliver54 阅读(1000) 评论(0) 推荐(0)

[转]用NPOI操作EXCEL--数据有效性
摘要:本文转自:http://www.cnblogs.com/atao/archive/2009/09/22/1572170.html在有些情况下(比如Excel引入),我们可能不允许用户在Excel随意输入一些无效数据,这时就要在模板中加一些数据有效性的验证。在Excel中,设置数据有效性的方步骤如下:... 阅读全文

posted @ 2015-12-23 11:29 freeliver54 阅读(2342) 评论(0) 推荐(0)

[转]How to insert a row between two rows in an existing excel with HSSF (Apache POI)
摘要:本文转自:http://stackoverflow.com/questions/5785724/how-to-insert-a-row-between-two-rows-in-an-existing-excel-with-hssf-apache-poiSomehow I manage to crea... 阅读全文

posted @ 2015-12-23 11:22 freeliver54 阅读(1097) 评论(1) 推荐(0)

[转]Excel - How to lock cell without using macros if possible
摘要:本文转自:http://stackoverflow.com/questions/11953214/excel-how-to-lock-cell-without-using-macros-if-possibleYou can prevent a user entering new data using... 阅读全文

posted @ 2015-12-22 15:52 freeliver54 阅读(286) 评论(0) 推荐(0)

[转]NPOI TestFunctionRegistry.cs
摘要:本文转自:https://github.com/tonyqus/npoi/blob/master/testcases/main/SS/Formula/TestFunctionRegistry.cs/* * ===============================================... 阅读全文

posted @ 2015-11-18 17:53 freeliver54 阅读(555) 评论(0) 推荐(0)

[转]用NPOI操作EXCEL--通过NPOI获得公式的返回值
摘要:本文转自:http://www.cnblogs.com/atao/archive/2009/10/12/1582085.html前面我们学习了通过NPOI向Excel中设置公式,那么有些读者可能会问:“NPOI能不能获取公式的返回值呢?”,答案是可以! 一、获取模板文件中公式的返回值 如在D盘中有一... 阅读全文

posted @ 2015-11-18 11:24 freeliver54 阅读(4730) 评论(2) 推荐(1)

导航